Replies: 3 comments 2 replies
-
Yes, if you navigate away you will lose context. |
Beta Was this translation helpful? Give feedback.
0 replies
-
you can add the script in your <head>
<script src="/wails/ipc.js"></script>
<script src="/wails/runtime.js"></script>
</head> then call wails method <script>
runtime.LogError('a custom page log')
window.go.app.App.Xxxxx().then(res => {
console.log(res)
})
</script> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
wails : v2
my code in frontend/index.html
code in src/test.html
error:
why in wails window,try location.href to other html or url
, the go Context function is gone?
how can I resove?
Beta Was this translation helpful? Give feedback.
All reactions