Skip to content

webview not working #43

@enaaab460

Description

@enaaab460

I am using windows 11 23h2 x64, nim 2.2, nim-webview 2.5
I checked the other issues about webview but could not fix it
Here is my code

import webui

let window = newWindow() # Create a new Window
window.setSize(300,300)
# echo $window.show("<html><script src='/webui.js'></script>HelloHello</html>",WebuiBrowser.wbChrome) # Show the window with html content
# echo $window.show("<html><script src='/webui.js'></script>HelloHello</html>",WebuiBrowser.wbWebview) # Show the window with html content
# echo $window.showWv("<html><script src='/webui.js'></script>HelloHello</html>") # Show the window with html content
wait() # Wait until the window gets closed

Only the first show (with chrome) works when uncommented,

the second show and the third show return true, but both of them don't show the browser, and the terminal closes in ~10 seconds

I already installed webview from microsoft evergreen installer, and wails (go electron alternative using webview) also works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions