mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-10-01 01:26:16 +13: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:
parent
3c539f0ec8
commit
978c145180
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue