@tauri-apps/plugin-opener - v2.4.0
    Preparing search index...

    Function openUrl

    • Opens a url with the system's default app, or the one specified with openWith.

      Parameters

      • url: string | URL

        The URL to open.

      • OptionalopenWith: string

        The app to open the URL with. If not specified, defaults to the system default application for the specified url type. On mobile, openWith can be provided as inAppBrowser to open the URL in an in-app browser. Otherwise, it will open the URL in the system default browser.

      Returns Promise<void>

      import { openUrl } from '@tauri-apps/plugin-opener';

      // opens the given URL on the default browser:
      await openUrl('https://github.com/tauri-apps/tauri');
      // opens the given URL using `firefox`:
      await openUrl('https://github.com/tauri-apps/tauri', 'firefox');

      2.0.0