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
I wonder if it will be better to use const instead of numbers.
Change win.showBrowser("index.html", 2) to win.showBrowser("index.html", webui.Chrome).
webui.NoBrowser,// 0. No web browserwebui.AnyBrowser,// 1. Default recommended web browserwebui.Chrome,// 2. Google Chromewebui.Firefox,// 3. Mozilla Firefoxwebui.Edge,// 4. Microsoft Edgewebui.Safari,// 5. Apple Safariwebui.Chromium,// 6. The Chromium Projectwebui.Opera,// 7. Opera Browserwebui.Brave,// 8. The Brave Browserwebui.Vivaldi,// 9. The Vivaldi Browserwebui.Epic,// 10. The Epic Browserwebui.Yandex,// 11. The Yandex Browserwebui.ChromiumBased,// 12. Any Chromium based browser
The text was updated successfully, but these errors were encountered:
I know what you mean.
I also considered the solution you suggested,when I was writing this part of the code.
If I provide such a const type or enum type to the user(TypeScript Developer).
The user must import the definition files of these types, when they using these types.
This will complicate my distribution package.
Maybe you have a better way to solve this problem.
PR is welcome.
I wonder if it will be better to use
const
instead of numbers.Change
win.showBrowser("index.html", 2)
towin.showBrowser("index.html", webui.Chrome)
.The text was updated successfully, but these errors were encountered: