init
This commit is contained in:
27
.devcontainer/novnc/vnc-wrapper.html
Normal file
27
.devcontainer/novnc/vnc-wrapper.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user