File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff 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
26172656learnAbout . addEventListener ( 'click' , ( ) => {
26182657
You can’t perform that action at this time.
0 commit comments