mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-11 01:55:43 +00:00
1fe504346e
- Added a new Tauri v2 operator shell for RdClient desktop, featuring first-run panel URL setup and session management. - Implemented automatic session detection for Linux and TLS support for both HTTP and HTTPS with various certificate options. - Enhanced remote session opening functionality to utilize the new desktop client when available.
23 lines
843 B
JavaScript
23 lines
843 B
JavaScript
// Copyright 2020-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
if (window.location.pathname.startsWith("/page2")) {
|
|
console.log("hello from javascript in page2");
|
|
} else {
|
|
console.log("hello from javascript in page1");
|
|
|
|
if (typeof WebAssembly.instantiateStreaming !== "undefined") {
|
|
WebAssembly.instantiateStreaming(fetch("/wasm.wasm")).then((wasm) => {
|
|
console.log(wasm.instance.exports.main()); // should log 42
|
|
});
|
|
} else {
|
|
// Older WKWebView may not support `WebAssembly.instantiateStreaming` yet.
|
|
fetch("/wasm.wasm")
|
|
.then((response) => response.arrayBuffer())
|
|
.then((bytes) => WebAssembly.instantiate(bytes))
|
|
.then((wasm) => {
|
|
console.log(wasm.instance.exports.main()); // should log 42
|
|
});
|
|
}
|
|
}
|