try skypack -> esm.run (it bundles everything into one file)
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import RFB from "https://cdn.skypack.dev/pin/@novnc/novnc@v1.3.0-RRNSIy674lWHJVNg8Apd/mode=imports,min/unoptimized/core/rfb.js";
|
import RFB from "https://cdn.jsdelivr.net/npm/@novnc/novnc/core/rfb.js/+esm";
|
||||||
|
|
||||||
// DOS-style box for text
|
// DOS-style box for text
|
||||||
const cmd = document.getElementById("cmd-text");
|
const cmd = document.getElementById("cmd-text");
|
||||||
@ -12,7 +12,7 @@ if (window.WebSocket) {
|
|||||||
document.getElementById("display"),
|
document.getElementById("display"),
|
||||||
"wss://spin-vm.jrvs.io",
|
"wss://spin-vm.jrvs.io",
|
||||||
{
|
{
|
||||||
wsProtocols: ["binary", "base64"],
|
wsProtocols: ["binary", "base64"]
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
rfb.addEventListener("connect", () => {
|
rfb.addEventListener("connect", () => {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<meta name="description" content="My first website on a Windows Me-powered time machine. You've been warned.">
|
<meta name="description" content="My first website on a Windows Me-powered time machine. You've been warned.">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<link rel="shortcut icon" href="favicon.ico">
|
<link rel="shortcut icon" href="favicon.ico">
|
||||||
<link rel="preconnect" href="https://cdn.skypack.dev">
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
<link rel="web-socket" href="wss://spin-vm.jrvs.io">
|
<link rel="web-socket" href="wss://spin-vm.jrvs.io">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Reference in New Issue
Block a user