Closed kav2k closed 10 years ago
Without this fix, on extension initialization:
localStorage['open-on-click'] === undefined localStorage.getItem('open-on-click') === null
localStorage['open-on-click'] === undefined
localStorage.getItem('open-on-click') === null
JavaScript, in its infinite wisdom, assigns a string "null" here: link.defaultValue = link.value = bg.getLink();
link.defaultValue = link.value = bg.getLink();
Therefore, upon opening the options page the link field is filled with "null", and if options are saved the default link is prevented from being used.
Thanks!
Without this fix, on extension initialization:
localStorage['open-on-click'] === undefined
localStorage.getItem('open-on-click') === null
JavaScript, in its infinite wisdom, assigns a string "null" here:
link.defaultValue = link.value = bg.getLink();
Therefore, upon opening the options page the link field is filled with "null", and if options are saved the default link is prevented from being used.