Skip to content

Commit 53721f4

Browse files
committed
Update filebrowser.js
1 parent 2464736 commit 53721f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

filebrowser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ async function renderSidebarHTML() {
241241
// if not logged in
242242
if (gitToken == '') {
243243

244-
await showDialog(openGitHubLogin, 'Hmm... we can\'t find\nthat repo. Try logging in.', 'Login', true);
244+
const dialogResp = await showDialog(openGitHubLogin, 'Hmm... we can\'t find\nthat repo. Try logging in.', 'Login', true);
245+
246+
// if chosen to log in, return
247+
if (dialogResp == true) return;
245248

246249
} else { // if logged in
247250

0 commit comments

Comments
 (0)