VNC-122 fix bug with brave, fix location of disconnect.html

This commit is contained in:
matt mcclaskey 2025-08-14 14:19:57 +00:00
parent 1eae1221b6
commit 1f7d4b2689
3 changed files with 4 additions and 4 deletions

View File

@ -1571,7 +1571,7 @@ const UI = {
// in some cases the intra-frame message could be blocked, fall back to navigating to a disconnect page.
setTimeout(function() {
window.location.replace('/disconnected.html');
window.location.replace('disconnected.html');
}, 10000);
} else {
//send keep-alive

View File

@ -27,7 +27,7 @@ window.addEventListener('touchstart', function onFirstTouch() {
// brings us a bit closer but is not optimal.
export let dragThreshold = 10 * (window.devicePixelRatio || 1);
export const supportsKeyboardLock = ('keyboard' in navigator && 'lock' in navigator.keyboard && typeof(navigator.keyboard.lock) === 'function');
export const supportsKeyboardLock = typeof navigator.keyboard?.lock === 'function';
let _supportsCursorURIs = false;

View File

@ -13,11 +13,11 @@ export default defineConfig({
plugins: [
viteCommonjs(),
envCompatible(),
//ViteMinifyPlugin(),
ViteMinifyPlugin(),
ViteRestart({restart: ['core/**', 'app/**','kasmvnc-version.txt']}),
],
build: {
sourcemap: true,
sourcemap: false,
rollupOptions: {
input: {
main: './index.html',