1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-27 18:40:41 +12:00

Correct check for undefined variable

The code was comparing the result of `typeof` with a variable named `undefined`

As typeof returns a string it should compare to `'undefined'`
This commit is contained in:
Mathias Rangel Wulff 2016-09-12 10:23:31 +02:00 committed by GitHub
parent 3c539f0ec8
commit 978c145180

View file

@ -126,7 +126,7 @@ var fromNoScript = function(content) {
noscript === null ||
typeof noscript !== 'object' ||
typeof noscript.prefs !== 'object' ||
typeof noscript.prefs.clearClick === undefined ||
typeof noscript.prefs.clearClick === 'undefined' ||
typeof noscript.whitelist !== 'string' ||
typeof noscript.V !== 'string'
) {