Skip to content

Commit

Permalink
eventually the tunnel will be moved anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGamer13 committed Oct 17, 2023
1 parent f2be573 commit 95f725e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ npm-*
/.opt-in
!build/
!dist/
build/*

# Generated translation files
/translations
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu-bar/share-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const getProjectUri = () => new Promise(resolve => {
const isUploadAvailable = async () => {
let res = null;
try {
res = await fetch('https://projects.penguinmod.site/api');
res = await fetch('https://projects.penguinmod.com/api');
} catch {
// failed to fetch entirely
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/components/tw-studioview/studioview.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@ StudioView.prototype.onselect = function (id, el) { };
StudioView.prototype.onpageload = function () { };
StudioView.prototype.onend = function () { };

StudioView.STUDIO_API = 'https://projects.penguinmod.site/api';
StudioView.STUDIO_API = 'https://projects.penguinmod.com/api';

// The URL to download thumbnails from.
// $id is replaced with the project's ID.
StudioView.THUMBNAIL_SRC = 'https://projects.penguinmod.site/api/pmWrapper/iconUrl?id=$id';
StudioView.THUMBNAIL_SRC = 'https://projects.penguinmod.com/api/pmWrapper/iconUrl?id=$id';

// The URL for project pages.
// $id is replaced with the project ID.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/project-fetcher-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const fetchProjectToken = projectId => {
if (hashParams.has('token')) {
return Promise.resolve(hashParams.get('token'));
}
return fetch(`https://projects.penguinmod.site/api/projects/getPublished?id=${projectId}`)
return fetch(`https://projects.penguinmod.com/api/projects/getPublished?id=${projectId}`)
.then(r => {
if (!r.ok) return null;
return r.json();
Expand Down Expand Up @@ -136,7 +136,7 @@ const ProjectFetcherHOC = function (WrappedComponent) {
storage.setProjectToken(projectId);
assetPromise = storage.load(storage.AssetType.Project, projectId, storage.DataFormat.JSON);
} else {
projectUrl = `https://projects.penguinmod.site/api/projects/getPublished?type=file&id=${projectId}`
projectUrl = `https://projects.penguinmod.com/api/projects/getPublished?type=file&id=${projectId}`
assetPromise = progressMonitor.fetchWithProgress(projectUrl)
.then(r => {
this.props.vm.runtime.renderer.setPrivateSkinAccess(false);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/tw-project-meta-fetcher-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import log from './log';
import { setProjectTitle } from '../reducers/project-title';
import { setAuthor, setDescription, setExtraProjectInfo, setRemixedProjectInfo } from '../reducers/tw';

const API_URL = 'https://projects.penguinmod.site/api/projects/getPublished?id=$id';
const API_REMIX_URL = 'https://projects.penguinmod.site/api/pmWrapper/remixes?id=$id';
const API_URL = 'https://projects.penguinmod.com/api/projects/getPublished?id=$id';
const API_REMIX_URL = 'https://projects.penguinmod.com/api/pmWrapper/remixes?id=$id';

function APIProjectToReadableProject(apiProject) {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/playground/render-interface.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ runAddons();
// // 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://projects.penguinmod.site/api/projects/getPublished?id=${id}`);
// const response = await fetch(`https://projects.penguinmod.com/api/projects/getPublished?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 {};

Expand Down

0 comments on commit 95f725e

Please sign in to comment.