From 6db169411613dec751c9eeab19734ecf2582107d Mon Sep 17 00:00:00 2001 From: Islam Kamel Date: Sun, 9 Jul 2023 14:17:06 +0300 Subject: [PATCH] added fallback subdomin for cdn, cdn.jsdilver not working in egypt --- index.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e0c8466f..6c5677c7 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,11 @@ - + @@ -21,8 +25,14 @@ relativePath: true, auto2top: true, } + + function replaceResources(target) { + const newScript = document.createElement("script"); + newScript.src = target.src.replace("cdn", "fastly") + document.body.appendChild(newScript) + } - +