chore(share): fix error in dev mode

This commit is contained in:
Elian Doran 2025-06-09 14:29:19 +03:00
parent 3cd4b1b67e
commit c2e0640ea8
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -170,7 +170,8 @@ function register(router: Router) {
assetPath: isDev ? assetPath : `../${assetPath}`, assetPath: isDev ? assetPath : `../${assetPath}`,
appPath: isDev ? appPath : `../${appPath}`, appPath: isDev ? appPath : `../${appPath}`,
showLoginInShareTheme, showLoginInShareTheme,
t t,
isDev
}; };
let useDefaultView = true; let useDefaultView = true;

View File

@ -10,7 +10,7 @@
<link rel="shortcut icon" href="<% if (note.hasRelation("shareFavicon")) { %>api/notes/<%= note.getRelation("shareFavicon").value %>/download<% } else { %>../favicon.ico<% } %>"> <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> <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"> <link href="<%= assetPath %>/stylesheets/share.css" rel="stylesheet">
<% } %> <% } %>