VNC-122 fix bug with brave, fix location of disconnect.html
This commit is contained in:
parent
1eae1221b6
commit
1f7d4b2689
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue