mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(share): fix error in dev mode
This commit is contained in:
parent
3cd4b1b67e
commit
c2e0640ea8
@ -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;
|
||||||
|
|
||||||
|
@ -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">
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user