mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-24 21:40:48 +02:00
fix(os): use an internal object instead of ` window.__TAURI__`, closes #719
This commit is contained in:
@@ -13,8 +13,8 @@ import { invoke } from "@tauri-apps/api/primitives";
|
||||
/** @ignore */
|
||||
declare global {
|
||||
interface Window {
|
||||
__TAURI__: {
|
||||
os: { __eol: string };
|
||||
__TAURI_OS_PLUGIN_INTERNALS__: {
|
||||
eol: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,7 @@ type Arch =
|
||||
* @since 2.0.0
|
||||
* */
|
||||
function eol() {
|
||||
return window.__TAURI__.os.__eol;
|
||||
return window.__TAURI_OS_PLUGIN_INTERNALS__.eol;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user