try skypack -> esm.run (it bundles everything into one file)

This commit is contained in:
2021-11-18 18:13:24 -05:00
parent 938e532639
commit 4a42b64843
2 changed files with 3 additions and 3 deletions

View File

@ -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
const cmd = document.getElementById("cmd-text");
@ -12,7 +12,7 @@ if (window.WebSocket) {
document.getElementById("display"),
"wss://spin-vm.jrvs.io",
{
wsProtocols: ["binary", "base64"],
wsProtocols: ["binary", "base64"]
}
);
rfb.addEventListener("connect", () => {

View File

@ -14,7 +14,7 @@
<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="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">
</head>
<body>