You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
tiokr
pushed a commit
to tiokr/longPressNewTabClone
that referenced
this issue
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
isundefined
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 stateThe text was updated successfully, but these errors were encountered: