Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(web-clipper): script imports
Elian Doranab95f6dcc2e0
diff --git a/apps/web-clipper/entrypoints/options/index.html b/apps/web-clipper/entrypoints/options/index.htmlindex 2363567a5e..16e084ded9 100644--- a/apps/web-clipper/entrypoints/options/index.html+++ b/apps/web-clipper/entrypoints/options/index.html@@ -54,9 +54,9 @@<p>Note that the entered password is not stored anywhere, it will be only used to retrieve an authorization token from the server instance which will be then used to send the clipped notes.</p></form>-<script src="../lib/cash.min.js"></script>-<script src="../lib/browser-polyfill.js"></script>-<script src="options.js"></script>+<script type="module" src="../../lib/cash.min.js"></script>+<script type="module" src="../../lib/browser-polyfill.js"></script>+<script type="module" src="index.js"></script></body>diff --git a/apps/web-clipper/entrypoints/popup/index.html b/apps/web-clipper/entrypoints/popup/index.htmlindex be415744ca..7bd985801f 100644--- a/apps/web-clipper/entrypoints/popup/index.html+++ b/apps/web-clipper/entrypoints/popup/index.html@@ -46,11 +46,11 @@<div>Status: <span id="connection-status">unknown</span></div></div>- <script src="../lib/browser-polyfill.js"></script>- <script src="../lib/cash.min.js"></script>- <script src="popup.js"></script>- <script src="../utils.js"></script>- <script src="../content.js"></script>+ <script type="module" src="../../lib/browser-polyfill.js"></script>+ <script type="module" src="../../lib/cash.min.js"></script>+ <script type="module" src="popup.js"></script>+ <script type="module" src="../../utils.js"></script>+ <script type="module" src="../../content.js"></script></body></html>diff --git a/apps/web-clipper/entrypoints/popup/popup.js b/apps/web-clipper/entrypoints/popup/popup.jsindex adac36126e..eca8d790e1 100644--- a/apps/web-clipper/entrypoints/popup/popup.js+++ b/apps/web-clipper/entrypoints/popup/popup.js@@ -1,3 +1,5 @@+console.log("Popup script loaded");+async function sendMessage(message) {try {return await browser.runtime.sendMessage(message);@@ -164,7 +166,7 @@ browser.runtime.onMessage.addListener(request => {}else{$alreadyVisited.html('');}-+}});