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'`
pull/2/head
Mathias Rangel Wulff 8 years ago committed by GitHub
parent 3c539f0ec8
commit 978c145180

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

Loading…
Cancel
Save