Skip to content

Commit 24a6199

Browse files
committed
Clean up some cruft.
1 parent 8795a9c commit 24a6199

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/chrome/content/fetch-source.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
161161
window.addEventListener("load", httpsEverywhere.fetchSource.init, false);

src/components/https-everywhere.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@ let https_blacklist_domains = {};
1919

2020
const CI = Components.interfaces;
2121
const CC = Components.classes;
22-
const CU = Components.utils;
23-
const CR = Components.results;
2422
const Ci = Components.interfaces;
25-
const Cc = Components.classes;
2623
const Cu = Components.utils;
27-
const Cr = Components.results;
2824

2925
Cu.import("resource://gre/modules/Services.jsm");
3026
Cu.import("resource://gre/modules/FileUtils.jsm");

0 commit comments

Comments
 (0)