Skip to content

Improuvments #1

Open
Open
@AlbertShown

Description

@AlbertShown

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 browser
webui.AnyBrowser, // 1. Default recommended web browser
webui.Chrome, // 2. Google Chrome
webui.Firefox, // 3. Mozilla Firefox
webui.Edge, // 4. Microsoft Edge
webui.Safari, // 5. Apple Safari
webui.Chromium, // 6. The Chromium Project
webui.Opera, // 7. Opera Browser
webui.Brave, // 8. The Brave Browser
webui.Vivaldi, // 9. The Vivaldi Browser
webui.Epic, // 10. The Epic Browser
webui.Yandex, // 11. The Yandex Browser
webui.ChromiumBased, // 12. Any Chromium based browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions