Skip to content

Commit

Permalink
Corrected Undefined Check
Browse files Browse the repository at this point in the history
  • Loading branch information
RealityRipple committed Sep 21, 2020
1 parent 127b94c commit dc208e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/content/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ var ExtExp =
if (extPath === false)
continue;
var extVer = '0.0';
if (child._version !== undefined && child._version.hasAttribute('value'))
if (typeof child._version !== 'undefined' && child._version !== null && child._version.hasAttribute('value'))
extVer = child._version.getAttribute('value');
var ext = {name: extName, version: extVer, id: extID, path: extPath};
expList.push(ext);
Expand Down

0 comments on commit dc208e5

Please sign in to comment.