Skip to content

Commit 4d794cc

Browse files
committed
Update filebrowser.js
1 parent 5cae985 commit 4d794cc

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

filebrowser.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2613,6 +2613,45 @@ repoShareButton.addEventListener('click', () => {
26132613
*/
26142614

26152615

2616+
// open debug page on click of button
2617+
2618+
if (isDev) {
2619+
2620+
const learnDebug = learnWrapper.querySelector('.picture-wrapper');
2621+
2622+
learnDebug.counter = 0;
2623+
2624+
learnDebug.addEventListener('click', () => {
2625+
2626+
learnDebug.counter++;
2627+
2628+
if (learnDebug.counter === 10) {
2629+
2630+
showDialog(loadGitToken, 'Paste Git token?', 'OK');
2631+
2632+
// load git token from clipboard
2633+
async function loadGitToken() {
2634+
2635+
gitToken = await readClipboard();
2636+
2637+
saveGitTokenLS(gitToken);
2638+
2639+
// clear modified repos
2640+
modifiedRepos = {};
2641+
updateModReposLS();
2642+
2643+
// render sidebar
2644+
renderSidebarHTML();
2645+
2646+
}
2647+
2648+
}
2649+
2650+
});
2651+
2652+
}
2653+
2654+
26162655
// show about page on click of button
26172656
learnAbout.addEventListener('click', () => {
26182657

0 commit comments

Comments
 (0)