How to open a browser window from a node-webkit app?

前端 未结 1 416
长发绾君心
长发绾君心 2021-02-05 14:44

I have a desktop application, packaged using node-webkit. I need to open the default browser of the user on click of a link. I am using

window.open(\"www.google         


        
1条回答
  •  长发绾君心
    2021-02-05 15:06

    To open a link in the user's default browser, you could use gui.Shell.openExternal("http://website.com"). Checkout the documentation for gui.Shell.

    0 讨论(0)
提交回复
热议问题