Skip to content

Commit 220d042

Browse files
committed
Hack to hide scrollbar on Windows.
1 parent 8d21c37 commit 220d042

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

css/base.less

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
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 {

js/livebomb.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)