fix(os): use an internal object instead of window.__TAURI__, closes #719 (#721)

fix(os): use an internal object instead of ` window.__TAURI__`, closes  #719
This commit is contained in:
Amr Bashir
2023-11-13 21:55:00 -03:00
committed by GitHub
parent 251852ccbc
commit fc62ead565
7 changed files with 20 additions and 14 deletions
+3 -3
View File
@@ -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;
}
/**