Add BundledAssetFileServer for bundled /wails/runtime.js. Update examples.

This commit is contained in:
Lea Anthony
2024-03-17 15:08:30 +11:00
parent 75c0236a04
commit bc0a9b2e52
40 changed files with 1214 additions and 1209 deletions
+1 -1
View File
@@ -80,7 +80,7 @@
<input autofocus autocomplete="off" class="input" id="name" type="text"/>
<button class="btn" onclick="greet()">Greet</button>
</div>
<script src='runtime.js'></script>
<script src='/wails/runtime.js'></script>
<script src='bindings_main.js'></script>
<script>
let resultText = "";
+1 -1
View File
@@ -17,7 +17,7 @@ func main() {
&GreetService{},
},
Assets: application.AssetOptions{
Handler: application.AssetFileServerFS(assets),
Handler: application.BundledAssetFileServer(assets),
},
Mac: application.MacOptions{
ApplicationShouldTerminateAfterLastWindowClosed: true,