don't use CDN's for most things. Get rid of JsDelivr.net from CSP as well.

This commit is contained in:
KingKDot
2026-04-18 21:16:29 -05:00
parent 1ee4ae96d5
commit 4cc1f47822
43 changed files with 1339 additions and 423 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import AnsiToHtml from "https://cdn.jsdelivr.net/npm/ansi-to-html@0.7.2/+esm";
import AnsiToHtml from "/vendor/ansi-to-html/ansi-to-html.esm.js";
const converter = new AnsiToHtml({ newline: true, escapeHtml: true });
+1 -2
View File
@@ -6,8 +6,7 @@ let countryCounts = {};
let maxCountryCount = 0;
let latestByCountry = {};
const GEOJSON_URL =
"https://cdn.jsdelivr.net/gh/datasets/geo-countries@master/data/countries.geojson";
const GEOJSON_URL = "/vendor/geo-countries/countries.geojson";
if (typeof Chart !== "undefined") {
Chart.defaults.color = "#cbd5e1";
@@ -330,7 +330,7 @@ function ensureMsgpackrLoaded() {
if (msgpackLoadPromise) return msgpackLoadPromise;
msgpackLoadPromise = new Promise((resolve, reject) => {
const script = document.createElement("script");
script.src = "https://cdn.jsdelivr.net/npm/msgpackr@1.11.8/dist/index.js";
script.src = "/vendor/msgpackr/msgpackr.js";
script.async = true;
script.onload = () => resolve();
script.onerror = (err) => reject(err);