mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	chore(share): fix error in dev mode
This commit is contained in:
		@@ -170,7 +170,8 @@ function register(router: Router) {
 | 
			
		||||
            assetPath: isDev ? assetPath : `../${assetPath}`,
 | 
			
		||||
            appPath: isDev ? appPath : `../${appPath}`,
 | 
			
		||||
            showLoginInShareTheme,
 | 
			
		||||
            t
 | 
			
		||||
            t,
 | 
			
		||||
            isDev
 | 
			
		||||
        };
 | 
			
		||||
        let useDefaultView = true;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@
 | 
			
		||||
 | 
			
		||||
    <link rel="shortcut icon" href="<% if (note.hasRelation("shareFavicon")) { %>api/notes/<%= note.getRelation("shareFavicon").value %>/download<% } else { %>../favicon.ico<% } %>">
 | 
			
		||||
    <script src="<%= appPath %>/share.js" type="module"></script>
 | 
			
		||||
    <% if (!note.isLabelTruthy("shareOmitDefaultCss")) { %>
 | 
			
		||||
    <% if (!isDev && !note.isLabelTruthy("shareOmitDefaultCss")) { %>
 | 
			
		||||
        <link href="<%= assetPath %>/stylesheets/share.css" rel="stylesheet">
 | 
			
		||||
    <% } %>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user