From 72ba5cd34ca3d96bd157d57fcbbc8d1f04211ed7 Mon Sep 17 00:00:00 2001 From: nmsderp <130254323+nmsderp@users.noreply.github.com> Date: Sun, 29 Sep 2024 15:23:25 -0400 Subject: [PATCH] real --- src/addons/gamepad/addon.json | 6 +++--- src/p4/get-project-metadata.js | 4 ++-- src/packager/load-project.js | 2 +- static/example.html | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/addons/gamepad/addon.json b/src/addons/gamepad/addon.json index 3c0d1f97..e7b50dd0 100644 --- a/src/addons/gamepad/addon.json +++ b/src/addons/gamepad/addon.json @@ -19,7 +19,7 @@ "matches": [ "https://scratch.mit.edu/projects/*", "https://penguinmod.com/#*", - "https://snailshare-backend.glitch.me/api/projects/getPublished?type=file&id=*" + "https://snailshare.dreamhosters.com/api/projects/getPublished?type=file&id=*" ] } ], @@ -29,7 +29,7 @@ "matches": [ "https://scratch.mit.edu/projects/*", "https://penguinmod.com/#*", - "https://snailshare-backend.glitch.me/api/projects/getPublished?type=file&id=*" + "https://snailshare.dreamhosters.com/api/projects/getPublished?type=file&id=*" ] }, { @@ -37,7 +37,7 @@ "matches": [ "https://scratch.mit.edu/projects/*", "https://penguinmod.com/#*", - "https://snailshare-backend.glitch.me/api/projects/getPublished?type=file&id=*" + "https://snailshare.dreamhosters.com/api/projects/getPublished?type=file&id=*" ] } ], diff --git a/src/p4/get-project-metadata.js b/src/p4/get-project-metadata.js index 0c3eede2..3204fddd 100644 --- a/src/p4/get-project-metadata.js +++ b/src/p4/get-project-metadata.js @@ -6,8 +6,8 @@ const getProjectMetadata = async (id) => { const meta = await request({ url: [ // Hopefully one of these URLs won't be blocked. - `https://snailshare-backend.glitch.me/api/projects/getPublished?id=${id}`, - `https://snailshare-backend.glitch.me/api/projects/getPublished?id=${id}` + `https://snailshare.dreamhosters.com/api/projects/getPublished?id=${id}`, + `https://snailshare.dreamhosters.com/api/projects/getPublished?id=${id}` ], type: 'json' }); diff --git a/src/packager/load-project.js b/src/packager/load-project.js index 138da58f..0c0e72c9 100644 --- a/src/packager/load-project.js +++ b/src/packager/load-project.js @@ -41,7 +41,7 @@ const fromURL = async (url, progressCallback) => { const fromID = (id, token, progressCallback) => { const tokenPart = token ? `?token=${token}` : ''; - const url = `https://snailshare-backend.glitch.me/api/projects/getPublished?type=file&id=${id}`; + const url = `https://snailshare.dreamhosters.com/api/projects/getPublished?type=file&id=${id}`; return fromURL(url, progressCallback); }; diff --git a/static/example.html b/static/example.html index 757e3cd2..950f2f2a 100644 --- a/static/example.html +++ b/static/example.html @@ -142,7 +142,7 @@

Error

const {storage, vm} = scaffolding; storage.addWebStore( [storage.AssetType.Project], - (asset) => `https://snailshare-backend.glitch.me/api/projects/getPublished?type=file&id=${asset.assetId}` + (asset) => `https://snailshare.dreamhosters.com/api/projects/getPublished?type=file&id=${asset.assetId}` ); storage.addWebStore( [storage.AssetType.ImageVector, storage.AssetType.ImageBitmap, storage.AssetType.Sound],