Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

background.js exception (5.0) #9

Open
tiokr opened this issue Apr 10, 2023 · 0 comments
Open

background.js exception (5.0) #9

tiokr opened this issue Apr 10, 2023 · 0 comments

Comments

@tiokr
Copy link

tiokr commented Apr 10, 2023

Hi, I understand this is just a clone of the firefox addon but just thought that it might interest somebody that there is an error when first loading the extension. 4.1 works fine for me still, but in 5.0 I get this:

Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'excpetoptionarray')
background.js:52 (anonymous function)
Line 52:
optobj.excpetoptionarray = [];
Not an expert on javascript but it seems that optobj is undefined when the extension first loads the function.
Putting optobj = {}; first in the else-statement (line 52) seems to work, and that seems to be a decent fix given that this is an initalization from an empty state

tiokr pushed a commit to tiokr/longPressNewTabClone that referenced this issue Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant