entrypoint: add missing, currently required set_password entry point

TODO: I think this can actually be part of the setup entrypoint/view at some point
This commit is contained in:
Panagiotis Papadopoulos 2025-02-21 22:21:49 +01:00
parent f78a6ed14b
commit f6d9b42911
3 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1,6 @@
import "../stylesheets/bootstrap.scss";
// @TriliumNextTODO: is this even needed anymore?
// @ts-ignore - module = undefined
// Required for correct loading of scripts in Electron
if (typeof module === 'object') {window.module = module; module = undefined;}

View File

@ -45,9 +45,7 @@
</div>
</div>
<script>
// Required for correct loading of scripts in Electron
if (typeof module === 'object') {window.module = module; module = undefined;}
</script>
<script src="<%= appPath %>/set_password.js" crossorigin type="module"></script>
</body>
</html>

View File

@ -12,7 +12,9 @@ const config: Configuration = {
setup: "./src/public/app/setup.js",
mobile: "./src/public/app/mobile.js",
desktop: "./src/public/app/desktop.js",
share: "./src/public/app/share.js"
share: "./src/public/app/share.js",
// TriliumNextTODO: integrate set_password into setup entry point/view
set_password: "./src/public/app/set_password.js"
},
output: {
publicPath: `${assetPath}/app-dist/`,