File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -150,12 +150,12 @@ httpsEverywhere.fetchSource = {
150150
151151// TODO: Test resizing on mulitple platforms
152152// adjust window resizing
153- window . onresize = function ( ) {
153+ window . addEventListener ( "resize" , function ( ) {
154154 var textBox = document . getElementById ( "source-text" ) ;
155155 // TODO: Move to constants
156156 textBox . width = window . innerWidth - 100 ;
157157 textBox . height = window . innerHeight - 150 ;
158- } ;
158+ } , false ) ;
159159
160160// hook event for init
161161window . addEventListener ( "load" , httpsEverywhere . fetchSource . init , false ) ;
Original file line number Diff line number Diff line change @@ -19,12 +19,8 @@ let https_blacklist_domains = {};
1919
2020const CI = Components . interfaces ;
2121const CC = Components . classes ;
22- const CU = Components . utils ;
23- const CR = Components . results ;
2422const Ci = Components . interfaces ;
25- const Cc = Components . classes ;
2623const Cu = Components . utils ;
27- const Cr = Components . results ;
2824
2925Cu . import ( "resource://gre/modules/Services.jsm" ) ;
3026Cu . import ( "resource://gre/modules/FileUtils.jsm" ) ;
You can’t perform that action at this time.
0 commit comments