Skip to content

wrapStore tabs.query has extra argument #275

Open
@alexelisenko

Description

@alexelisenko

I am seeing an error when running in chrome:

Uncaught (in promise) Error: Expected at most 1 argument for query(), got 2. It looks like this line here:

https://github.com/tshaddix/webext-redux/blob/master/src/wrap-store/wrapStore.js#L166

it's trying to supply a callback function, but browser.tabs.query does not take any callback parameters and instead returns a promise.

I think that call to tabs.query needs to use .then() instead, unless I'm missing something?

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/query

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions