Files
archived-tauri-plugin-cli/api-iife.js
Lucas Fernandes Nogueira be909a9b00 refactor: only inject API IIFE script when withGlobalTauri is true (#1071)
* refactor: only inject API IIFE script when withGlobalTauri is true

* fmt

* update tauri

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/8347963398

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-03-19 18:04:21 +00:00

2 lines
360 B
JavaScript

if("__TAURI__"in window){var __TAURI_PLUGIN_CLI__=function(_){"use strict";return"function"==typeof SuppressedError&&SuppressedError,_.getMatches=async function(){return await async function(_,n={},e){return window.__TAURI_INTERNALS__.invoke(_,n,e)}("plugin:cli|cli_matches")},_}({});Object.defineProperty(window.__TAURI__,"cli",{value:__TAURI_PLUGIN_CLI__})}