Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

Comments

Fix uncaught error when 'Reprompt Master Password' option is enabled#9

Open
bnt0 wants to merge 2 commits intoklingenm:masterfrom
bnt0:master
Open

Fix uncaught error when 'Reprompt Master Password' option is enabled#9
bnt0 wants to merge 2 commits intoklingenm:masterfrom
bnt0:master

Conversation

@bnt0
Copy link

@bnt0 bnt0 commented May 18, 2016

When Reprompt Master Password' option is enabled for a password the script fails on line 19. (Chromium 50.0.2661.102, Linux).

typeof always returns a string. typeof(username_fill) == undefined returns false, so the script didn't wait for the item to be loaded. Fixed by comparing with string value.

export2.js Outdated
} else {
var link = document.createElement("a");
if (link.download !== undefined) { // feature detection
if (link.download !== "undefined") { // feature detection
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this? This is comparison straight to a property, not to the result of "typeof", sure this is supposed to be a string?

@bnt0
Copy link
Author

bnt0 commented May 25, 2016

My bad, it only concerned line 17.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants