mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-02-19 07:30:55 +00:00
fixed bug when importing github project on first IDE run
This commit is contained in:
parent
4076b742fe
commit
8b23e9872e
@ -2372,13 +2372,6 @@ function setPlatformUI() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getPlatformAndRepo() {
|
export function getPlatformAndRepo() {
|
||||||
// add default platform?
|
|
||||||
// TODO: do this after repo_id
|
|
||||||
platform_id = qs.platform || userPrefs.getLastPlatformID();
|
|
||||||
if (!platform_id) {
|
|
||||||
if (isEmbed) fatalError(`The 'platform' must be specified when embed=1`);
|
|
||||||
platform_id = qs.platform = "vcs";
|
|
||||||
}
|
|
||||||
// lookup repository for this platform
|
// lookup repository for this platform
|
||||||
repo_id = qs.repo || userPrefs.getLastRepoID();
|
repo_id = qs.repo || userPrefs.getLastRepoID();
|
||||||
if (hasLocalStorage && repo_id && repo_id !== '/') {
|
if (hasLocalStorage && repo_id && repo_id !== '/') {
|
||||||
@ -2392,9 +2385,15 @@ export function getPlatformAndRepo() {
|
|||||||
requestPersistPermission(true, true);
|
requestPersistPermission(true, true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
platform_id = qs.platform || userPrefs.getLastPlatformID();
|
||||||
repo_id = '';
|
repo_id = '';
|
||||||
delete qs.repo;
|
delete qs.repo;
|
||||||
}
|
}
|
||||||
|
// add default platform
|
||||||
|
if (!platform_id) {
|
||||||
|
if (isEmbed) fatalError(`The 'platform' must be specified when embed=1`);
|
||||||
|
platform_id = qs.platform = "vcs";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// start
|
// start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user