browser-extension
browser-extension copied to clipboard
Warning's are not appearing and popup is throwing exception
The popup is not showing any warning even if Metamask is not detected. This is because localStorage['isweb3'] returns "false" which is string and !isweb3() returns boolean false, as a result, the warning never gets displayed.
Also isweb3unlocked always returns true because localStorage['web3accountslength'] always returns a string and as a result of which localStorage['web3accountslength'] != 0 always returns true.
Finally web3account returns undefined if no account is set and this causes limitStr to raise exception. This prevents the popup from displaying any results as the ajax call is made after calling limitStr.
I am working on this :)