Skip to content

Commit

Permalink
fix packager opening twice
Browse files Browse the repository at this point in the history
  • Loading branch information
nmsderp authored Jun 29, 2024
1 parent e66f5ae commit 746dc93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/tw-packager-integration-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import log from './log';
import {getIsShowingProject} from '../reducers/project-state';

const PACKAGER_URL = 'https://snail-ide.js.org/Snail-IDE-Packager';
const PACKAGER_ORIGIN = "https://snail-ide.js.org";
const PACKAGER_ORIGIN = "https://editor.snail-ide.com";

const readBlobAsArrayBuffer = blob => new Promise((resolve, reject) => {
const fr = new FileReader();
Expand All @@ -30,7 +30,6 @@ const PackagerIntegrationHOC = function (WrappedComponent) {
handleClickPackager () {
if (this.props.canOpenPackager) {
window.open(`${PACKAGER_URL}/?import_from=${location.origin}`);
window.open(`${PACKAGER_URL}/?import_from=${location.origin}`);
}
}
handleMessage (e) {
Expand Down

0 comments on commit 746dc93

Please sign in to comment.