Skip to main content

Link Provider

Plugin for opening links in the system browser.

If you open a link with standard JavaScript APIs, it opens inside the widget web view.

Use this plugin to open the link in the system's default browser instead.

Overview

  • Module name: widgetbuilder.linkprovider
  • Plugin name: Url
  • Version: 1.0

Manifest entry:

"required_plugins": [
  "widgetbuilder.linkprovider:Url:1.0"
]

Methods

Opens a link in the system browser.

ParameterTypeDescription
linkstringLink to open

Example

manifest.json

"required_plugins": [
  "widgetbuilder.linkprovider:Url:1.0"
]

index.html

function openLink(url) {
    if (window.plugins && window.plugins.Linkprovider && pluginLinkprovider_initialized) {
        window.plugins.Linkprovider.open(url);
    } else {
        console.error("Linkprovider plugin not available");
    }
}

openLink("https://www.corsair.com/ww/en");