chore(share): introduce theme script

This commit is contained in:
Elian Doran 2025-06-09 13:37:38 +03:00
parent 4fcb186022
commit 3def1a1e57
No known key found for this signature in database

View File

@ -57,6 +57,9 @@ const customServerYml = `- url: "{protocol}://{domain}:{port}/etapi"
<% for (const cssRelation of note.getRelations("shareCss")) { %>
<link href="api/notes/<%= cssRelation.value %>/download" rel="stylesheet">
<% } %>
<% if (!note.isLabelTruthy("shareOmitDefaultCss")) { %>
<script type="module" src="assets/scripts.js"></script>
<% } %>
<% for (const jsRelation of note.getRelations("shareJs")) { %>
<script type="module" src="api/notes/<%= jsRelation.value %>/download"></script>
<% } %>