mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
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:
parent
f78a6ed14b
commit
f6d9b42911
6
src/public/app/set_password.ts
Normal file
6
src/public/app/set_password.ts
Normal 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;}
|
@ -45,9 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script src="<%= appPath %>/set_password.js" crossorigin type="module"></script>
|
||||||
// Required for correct loading of scripts in Electron
|
|
||||||
if (typeof module === 'object') {window.module = module; module = undefined;}
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -12,7 +12,9 @@ const config: Configuration = {
|
|||||||
setup: "./src/public/app/setup.js",
|
setup: "./src/public/app/setup.js",
|
||||||
mobile: "./src/public/app/mobile.js",
|
mobile: "./src/public/app/mobile.js",
|
||||||
desktop: "./src/public/app/desktop.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: {
|
output: {
|
||||||
publicPath: `${assetPath}/app-dist/`,
|
publicPath: `${assetPath}/app-dist/`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user