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
My extension works without any errors in the latest version of Firefox. In Chrome I get this error.
Honestly, I'm not sure what is causing this error. I am using tabs.onUpdated and within that I'm using pageAction.show(). If you need more information, tell me.
Edit:
Maybe the issue is that I'm calling browser.pageAction.show() with a tab id in as the first argument as required by Firefox. I guess Chrome doesn't support it?
I tried to work around it using browser.pageAction.show(browser.pageAction.show.length?tabId:undefined).
But that didn't make any difference.
Edit2:
It seems to be a misconfiguration in the browser-polifill library. Setting minArgs and maxArgs of show under pageAction to 1 seems to fix it.
Edit3:
Actually I'm still getting an error: Error: Invocation of form pageAction.show(integer, function) doesn't match definition pageAction.show(integer tabId)
My extension works without any errors in the latest version of Firefox. In Chrome I get this error.
Honestly, I'm not sure what is causing this error. I am using
tabs.onUpdated
and within that I'm usingpageAction.show()
. If you need more information, tell me.Edit:
Maybe the issue is that I'm calling browser.pageAction.show() with a tab id in as the first argument as required by Firefox. I guess Chrome doesn't support it?
I tried to work around it using
browser.pageAction.show(browser.pageAction.show.length?tabId:undefined)
.But that didn't make any difference.
Edit2:
It seems to be a misconfiguration in the browser-polifill library. Setting
minArgs
andmaxArgs
ofshow
under pageAction to 1 seems to fix it.Edit3:
Actually I'm still getting an error:
Error: Invocation of form pageAction.show(integer, function) doesn't match definition pageAction.show(integer tabId)
Edit4:
Here is the code causing the error:
The text was updated successfully, but these errors were encountered: