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:
Steven Hugg committed 2026-08-21 23:10:59 +02:00
1 parent 48dbeb5dd2
commit a435cfd1fd
1 file changed
+9
+9
View File
@@ -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