mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-16 23:00:54 +02:00
* feat(barcode-scanner): add torch toggle * feat: torch plugin * fix --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2 lines
620 B
JavaScript
2 lines
620 B
JavaScript
if("__TAURI__"in window){var __TAURI_PLUGIN_TORCH__=function(n,e){"use strict";return n.disable=async function(){await e.invoke("plugin:torch|disable")},n.enable=async function(){await e.invoke("plugin:torch|enable")},n.isAvailable=async function(){return await e.invoke("plugin:torch|is_available").then(n=>n.available)},n.isEnabled=async function(){return await e.invoke("plugin:torch|is_enabled").then(n=>n.enabled)},n.toggle=async function(){return await e.invoke("plugin:torch|toggle").then(n=>n.enabled)},n}({},window.__TAURI__.core);Object.defineProperty(window.__TAURI__,"torch",{value:__TAURI_PLUGIN_TORCH__})}
|