From 75979ca08f4a0ab0cd956e9795730e7a6f39ab3c Mon Sep 17 00:00:00 2001 From: Islam Kamel Date: Sun, 9 Jul 2023 14:37:18 +0300 Subject: [PATCH] add fallback Fastly CDN --- index.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index e0c8466f..515b4d78 100644 --- a/index.html +++ b/index.html @@ -9,8 +9,11 @@ - - +
@@ -21,8 +24,13 @@ relativePath: true, auto2top: true, } + function replaceResources(target) { + const newScript = document.createElement("script"); + newScript.src = target.src.replace("cdn", "fastly") + document.body.appendChild(newScript) + } - +