File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1- body , html {
1+ html {
2+ }
3+
4+ body {
25 margin : 0 ;
36 max-width : 300px ;
47 max-height : 380px ;
58 width : 300px ;
69 height : 380px ;
710 background-repeat : repeat ;
811 -webkit-font-smoothing : antialiased ;
12+ overflow : hidden ;
913}
1014
11- ::-webkit-scrollbar { display : none ; }
12- #live-bomb ::-webkit-scrollbar { width : 0 !important ; }
13-
1415#live-bomb {
1516 position : relative ;
1617 overflow : hidden ;
1718 height : 100% ;
1819 width : 100% ;
1920}
2021
22+ ::-webkit-scrollbar { display : none ; }
23+ ::-webkit-scrollbar { width : 0 !important ; }
24+
2125/* **** HEADER *****/
2226
2327#header {
Original file line number Diff line number Diff line change @@ -162,11 +162,11 @@ storage.set('show-schedule',c);
162162
163163//Update schedule badge on change
164164$ ( 'body' ) . on ( 'checkBadge' , function ( ) {
165- if ( storage . get ( 'schedule-bagde' ) == false && gbLive != true ) {
165+ if ( storage . get ( 'schedule-bagde' ) == false && storage . get ( 'islive' ) != true ) {
166166 chrome . browserAction . setBadgeText ( { text :'' } ) ;
167167 }
168168
169- if ( storage . get ( 'schedule-bagde' ) == true && gbLive != true && scheduleCounter > 0 ) {
169+ if ( storage . get ( 'schedule-bagde' ) == true && storage . get ( 'islive' ) != true && scheduleCounter > 0 ) {
170170 chrome . browserAction . setBadgeText ( { text :'' + scheduleCounter + '' } ) ;
171171 }
172172} ) ;
@@ -292,8 +292,7 @@ buttonRefresh.click(function(){
292292 checkLive ( ) . done ( function ( ) {
293293 buttonRefresh . removeClass ( 'fa-cog fa-spin' ) . addClass ( 'fa-refresh' ) ;
294294
295- if ( gbLive == true ) {
296-
295+ if ( storage . get ( 'islive' ) == true ) {
297296 statusOnline . addClass ( 'animated bounceInUp' ) . show ( ) ;
298297 statusOffline . hide ( ) ;
299298 chrome . browserAction . setBadgeText ( { text :'LIVE' } ) ;
@@ -405,4 +404,13 @@ $('#lb-play-bman').click(function(){
405404 $ . ionSound . play ( 'bman' ) ;
406405} ) ;
407406
407+ // Windows Hide Scrollbar Hack
408+ // TODO: I HAVE NO IDEA WHY THIS IS NECESSARY OR WHY IT WORKS!
409+ setTimeout ( function ( ) {
410+ $ ( 'body' ) . height ( '379px' ) ;
411+ setTimeout ( function ( ) {
412+ $ ( 'body' ) . height ( '' ) ;
413+ } , 100 ) ;
414+ } , 100 ) ;
415+
408416} ) ;
You can’t perform that action at this time.
0 commit comments