Skip to content

Commit 78a8c44

Browse files
committed
Only dereference browser if it is defined.
1 parent 68c662a commit 78a8c44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/ssl-observatory.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ SSLObservatory.prototype = {
621621
var win = null
622622
if (channel) {
623623
var browser = this.HTTPSEverywhere.getBrowserForChannel(channel);
624-
var win = browser.contentWindow;
624+
if (browser) {
625+
var win = browser.contentWindow;
626+
}
625627
}
626628
var req = this.buildRequest(params);
627629
req.timeout = TIMEOUT;

0 commit comments

Comments
 (0)