mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-04 15:47:50 +02:00
fix(os): use an internal object instead of ` window.__TAURI__`, closes #719
This commit is contained in:
@@ -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__;
|
||||
|
||||
Reference in New Issue
Block a user