mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
chore: update documentation
This commit is contained in:
@@ -2,6 +2,17 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
/**
|
||||
* Webview script injected by the shell plugin on every page load.
|
||||
*
|
||||
* It installs a `click` listener on `document.body` that intercepts clicks on
|
||||
* `<a target="_blank">` elements whose `href` starts with `http://`, `https://`,
|
||||
* `mailto:` or `tel:`, cancels the navigation and opens the link with the
|
||||
* system's default application through the `plugin:shell|open` command instead.
|
||||
*
|
||||
* @module
|
||||
*/
|
||||
|
||||
import { invoke } from '@tauri-apps/api/core'
|
||||
|
||||
// open <a href="..."> links with the API
|
||||
|
||||
Reference in New Issue
Block a user