mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
currently each script inlines what it needs from @tauri-apps/api, so type checks like `image instanceof Image` all fail
2 lines
705 B
JavaScript
2 lines
705 B
JavaScript
if("__TAURI__"in window){var __TAURI_PLUGIN_DEEP_LINK__=function(e,n,i){"use strict";return e.getCurrent=async function(){return await n.invoke("plugin:deep-link|get_current")},e.isRegistered=async function(e){return await n.invoke("plugin:deep-link|is_registered",{protocol:e})},e.onOpenUrl=async function(e){return await i.listen("deep-link://new-url",n=>{e(n.payload)})},e.register=async function(e){return await n.invoke("plugin:deep-link|register",{protocol:e})},e.unregister=async function(e){return await n.invoke("plugin:deep-link|unregister",{protocol:e})},e}({},window.__TAURI__.core,window.__TAURI__.event);Object.defineProperty(window.__TAURI__,"deepLink",{value:__TAURI_PLUGIN_DEEP_LINK__})}
|