Skip to content

Commit 99bb8f1

Browse files
authored
Existance check (OpenUserJS#1761)
* GRR Post OpenUserJS#1759 Auto-merge
1 parent 7ec755f commit 99bb8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/scriptStorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ exports.sendScript = function (aReq, aRes, aNext) {
712712
}
713713

714714
// Don't count installs on browser request in Fx
715-
if (aReq.get('accept').indexOf('text/html') > -1) { // NOTE: Watchpoint
715+
if (aReq.get('accept') && aReq.get('accept').indexOf('text/html') > -1) { // NOTE: Watchpoint
716716
return;
717717
}
718718

0 commit comments

Comments
 (0)