File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2727 function check ( ) {
2828 let title = document . title ,
2929 mail = document . querySelector ( ".mail-status" ) ,
30- hasUnread = mail ? mail . classList . contains ( "unread" ) : false ;
30+ hasUnread = mail ? ! mail . hidden : false ;
3131 //
3232 if ( ! / ^ \( \d + \) / . test ( title ) ) {
3333 title = title . replace ( / ^ ( \( [ ^ ) ] + \) \s ) * / g, "" ) ;
4949 GM_registerMenuCommand ( "Set GitHub Title Notification Indicator" , ( ) => {
5050 const val = prompt ( "Indicator Value (it will be wrapped in parentheses)?" , indicator ) ;
5151 if ( val !== null ) {
52- GM_setValue ( "indicator" , indicator ) ;
52+ GM_setValue ( "indicator" , val ) ;
5353 check ( ) ;
5454 }
5555 } ) ;
5656 GM_registerMenuCommand ( "Set GitHub Title Notification Interval" , ( ) => {
5757 const val = prompt ( "Interval Value (in seconds)?" , interval ) ;
5858 if ( val !== null ) {
59- GM_setValue ( "interval" , interval ) ;
59+ GM_setValue ( "interval" , val ) ;
6060 setTimer ( ) ;
6161 }
6262 } ) ;
You can’t perform that action at this time.
0 commit comments