gogio: [wasm] fix compatibility with Go 1.23+

Signed-off-by: inkeliz <inkeliz@inkeliz.com>
This commit is contained in:
inkeliz
2025-05-27 04:27:27 +01:00
parent ae8a780af9
commit e1f06eb7b0
+1 -1
View File
@@ -174,7 +174,7 @@ const (
</html>` </html>`
// jsSetGo sets the `window.go` variable. // jsSetGo sets the `window.go` variable.
jsSetGo = `(() => { jsSetGo = `(() => {
window.go = {argv: [], env: {}, importObject: {go: {}}}; window.go = {argv: [], env: {}, importObject: {go: {}, gojs: {}}};
const argv = new URLSearchParams(location.search).get("argv"); const argv = new URLSearchParams(location.search).get("argv");
if (argv) { if (argv) {
window.go["argv"] = argv.split(" "); window.go["argv"] = argv.split(" ");