Move to Github Pages, add very basic analytics

This commit is contained in:
MollTheCoder 2023-07-11 11:35:24 -04:00 committed by GitHub
parent c4debc0cff
commit 387cd5e432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -1,10 +1,11 @@
fetch("https://eoynkne6jon7kld.m.pipedream.net/descriptions-analytics").catch(_=>{});
console.log("descriptions.js: Loading vanilla descriptions..."); console.log("descriptions.js: Loading vanilla descriptions...");
fetch("https://sandboxels-mods.mollthecoder.repl.co/descriptions/vanilla.json", fetch (
"https://mollthecoder.github.io/Sandboxels-Descriptions/descriptions/vanilla.json",
{ {
referrer: "https://sandboxels.r74n.com/mods/descriptions.js" referrer: "https://sandboxels.r74n.com/mods/descriptions.js"
} }
) ).then(res=>{
.then(res=>{
res.json().then(json=>{ res.json().then(json=>{
for(const element in json) { for(const element in json) {
// If the element doesn't exist (for example, nocancer2.js) then don't try to change it. // If the element doesn't exist (for example, nocancer2.js) then don't try to change it.