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
859 B
JavaScript
2 lines
859 B
JavaScript
if("__TAURI__"in window){var __TAURI_PLUGIN_WINDOW_STATE__=function(t,e,n){"use strict";var a;async function i(t,n){await e.invoke("plugin:window-state|restore_state",{label:t,flags:n})}return t.StateFlags=void 0,(a=t.StateFlags||(t.StateFlags={}))[a.SIZE=1]="SIZE",a[a.POSITION=2]="POSITION",a[a.MAXIMIZED=4]="MAXIMIZED",a[a.VISIBLE=8]="VISIBLE",a[a.DECORATIONS=16]="DECORATIONS",a[a.FULLSCREEN=32]="FULLSCREEN",a[a.ALL=63]="ALL",t.filename=async function(){return await e.invoke("plugin:window-state|filename")},t.restoreState=i,t.restoreStateCurrent=async function(t){await i(n.getCurrentWindow().label,t)},t.saveWindowState=async function(t){await e.invoke("plugin:window-state|save_window_state",{flags:t})},t}({},window.__TAURI__.core,window.__TAURI__.window);Object.defineProperty(window.__TAURI__,"windowState",{value:__TAURI_PLUGIN_WINDOW_STATE__})}
|