Files
otter/.devcontainer/novnc/vnc-wrapper.html
2026-05-25 03:43:34 +00:00

28 lines
955 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>noVNC (local-scaling wrapper)</title>
<script>
// Try several possible setting keys used by different noVNC versions
try {
localStorage.setItem('resize', 'scale');
localStorage.setItem('scaleViewport', 'true');
localStorage.setItem('scalingMode', 'local');
localStorage.setItem('preferLocalScaling', 'true');
localStorage.setItem('viewOnly', localStorage.getItem('viewOnly') || 'false');
} catch (e) {
// ignore
}
// Load the original noVNC UI (we will rename the original to vnc.orig.html)
var orig = 'vnc.orig.html' + window.location.search + window.location.hash;
// Use replace so back button doesn't loop
window.location.replace(orig);
</script>
</head>
<body>
<p>Applying local-scaling defaults and loading noVNC...</p>
</body>
</html>