Skip to content

Commit

Permalink
Fixed issue if node doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
409H committed Jun 13, 2018
1 parent 52aaa90 commit 988aa26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/TwitterFakeAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ class TwitterFakeAccount
}

var objAccountDetails = objNode.getElementsByClassName("account-group")[0];
if(typeof objAccountDetails === 'undefined') {
return;
}
objNode.setAttribute("ext-etheraddresslookup-twitterflagged", 1);

var objWhitelistedIcon = document.createElement("img");
Expand Down

0 comments on commit 988aa26

Please sign in to comment.