Embed Wails runtime.js, serve it from custom asset handler
The SPA needs /wails/runtime.js for window.wails to be available. Since we use a custom AssetOptions.Handler, Wails' internal routing doesn't serve it. Embed the runtime and serve it explicitly.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="/wails/runtime.js"></script>
|
||||
<script>window.__OIKOS_CONFIG__ = {};</script>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user