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-14 02:55:00 +02:00
committed by GitHub
parent 251852ccbc
commit fc62ead565
7 changed files with 20 additions and 14 deletions
+7 -3
View File
@@ -2,7 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
__RAW_global_os_api__;
// eslint-disable-next-line
window.__TAURI__.os.__eol = __TEMPLATE_eol__;
Object.defineProperty(window, "__TAURI_OS_PLUGIN_INTERNALS__", {
value: {
eol: __TEMPLATE_eol__,
},
});
__RAW_global_os_api__;