diff --git a/src/components/menu-bar/share-button.jsx b/src/components/menu-bar/share-button.jsx index 2993fdbf1fa..042e124aa9c 100644 --- a/src/components/menu-bar/share-button.jsx +++ b/src/components/menu-bar/share-button.jsx @@ -28,7 +28,7 @@ const getProjectUri = () => new Promise(resolve => { const isUploadAvailable = async () => { let res = null; try { - res = await fetch('https://snailshare.xyz/api'); + res = await fetch('https://snailshare.dreamhosters.com/api'); } catch { // failed to fetch entirely return false; diff --git a/src/components/tw-studioview/studioview.js b/src/components/tw-studioview/studioview.js index 6f189144d68..f7df93a90dc 100644 --- a/src/components/tw-studioview/studioview.js +++ b/src/components/tw-studioview/studioview.js @@ -300,11 +300,11 @@ StudioView.prototype.onselect = function (id, el) { }; StudioView.prototype.onpageload = function () { }; StudioView.prototype.onend = function () { }; -StudioView.STUDIO_API = 'https://snailshare.xyz/api'; +StudioView.STUDIO_API = 'https://snailshare.dreamhosters.com/api'; // The URL to download thumbnails from. // $id is replaced with the project's ID. -StudioView.THUMBNAIL_SRC = 'https://snailshare.xyz/api/pmWrapper/iconUrl?id=$id'; +StudioView.THUMBNAIL_SRC = 'https://snailshare.dreamhosters.com/api/pmWrapper/iconUrl?id=$id'; // The URL for project pages. // $id is replaced with the project ID. diff --git a/src/lib/project-fetcher-hoc.jsx b/src/lib/project-fetcher-hoc.jsx index 96aeebcc169..a1cc72ed043 100644 --- a/src/lib/project-fetcher-hoc.jsx +++ b/src/lib/project-fetcher-hoc.jsx @@ -42,7 +42,7 @@ const fetchProjectToken = projectId => { if (hashParams.has('token')) { return Promise.resolve(hashParams.get('token')); } - return fetch(`https://snailshare.xyz/api/projects/getPublished?id=${projectId}`) + return fetch(`https://snailshare.dreamhosters.com/api/projects/getPublished?id=${projectId}`) .then(r => { if (!r.ok) return null; return r.json(); @@ -152,7 +152,7 @@ const ProjectFetcherHOC = function (WrappedComponent) { storage.setProjectToken(projectId); assetPromise = storage.load(storage.AssetType.Project, projectId, storage.DataFormat.JSON); } else { - projectUrl = `https://snailshare.xyz/api/projects/getPublished?type=file&id=${projectId}` + projectUrl = `https://snailshare.dreamhosters.com/api/projects/getPublished?type=file&id=${projectId}` assetPromise = progressMonitor.fetchWithProgress(projectUrl) .then(r => { this.props.vm.runtime.renderer.setPrivateSkinAccess(false); diff --git a/src/playground/render-interface.jsx b/src/playground/render-interface.jsx index 277edbe9e6b..84c3ab58fc0 100644 --- a/src/playground/render-interface.jsx +++ b/src/playground/render-interface.jsx @@ -103,7 +103,7 @@ const getProjectDetailsById = async (id) => { // if we have already gotten the details of this project, avoid making another request since they likely never changed if (projectDetailCache[String(id)] != null) return projectDetailCache[String(id)]; - const response = await fetch(`https://snailshare.xyz/api/pmWrapper/getProject?id=${id}`); + const response = await fetch(`https://snailshare.dreamhosters.com/api/pmWrapper/getProject?id=${id}`); // Don't continue if the api never returned 200-299 since we would cache an error as project details if (!response.ok) return {}; @@ -342,7 +342,7 @@ class Interface extends React.Component { {(window.LastFetchedProject) != null && (window.LastFetchedProject.remix != null) ? (
Thanks to {projectDetailCache[String(window.LastFetchedProject.remix)]?.owner} for the original project {projectDetailCache[String(window.LastFetchedProject.remix)]?.name}.