You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Wails v3, I am trying to load a remote webpage built with Vue 3. I installed the @wailsio/runtime package and attempted to call a Go method from the page like this:
I don’t want to integrate the frontend directly into Wails. I want to develop them separately, have Wails load a remote URL, and expose some interfaces from Wails to the webpage, similar to window['go'] in Wails v2 or Electron’s contextBridge.
In Wails v3, how can I call Go methods from a frontend page running in remote mode?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Wails v3, I am trying to load a remote webpage built with Vue 3. I installed the @wailsio/runtime package and attempted to call a Go method from the page like this:
When using wails3 dev and loading a local frontend, it works fine, for example:
However, when loading a remote webpage, it doesn’t work, for example:
I don’t want to integrate the frontend directly into Wails. I want to develop them separately, have Wails load a remote URL, and expose some interfaces from Wails to the webpage, similar to window['go'] in Wails v2 or Electron’s contextBridge.
In Wails v3, how can I call Go methods from a frontend page running in remote mode?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions