mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-10-25 00:02:16 +00:00
repo= given, but not imported yet? offer to import it from github
(repo can be "user/repo" or "user/repo/tree/branch/...") fixes issue #242
This commit is contained in:
1 parent
48dbeb5dd2
commit
a435cfd1fd
1 file changed
+9
@@ -2215,6 +2215,15 @@ export async function startUI() {
|
||||
importProjectFromGithub(qs.githubURL, true);
|
||||
return;
|
||||
}
|
||||
// repo= given, but not imported yet? offer to import it from github
|
||||
// (repo can be "user/repo" or "user/repo/tree/branch/...")
|
||||
if (hasLocalStorage && qs.repo && !getRepos()[qs.repo]) {
|
||||
if (confirm(`Repository '${qs.repo}' was not found locally. Import it from GitHub?`)) {
|
||||
importProjectFromGithub('https://github.com/' + qs.repo, true);
|
||||
return;
|
||||
}
|
||||
delete qs.repo; // continue without repo
|
||||
}
|
||||
getPlatformAndRepo();
|
||||
setupSplits();
|
||||
// get store ID, repo id or platform id
|
||||
|
||||
Reference in new issue
Block a user