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

BROWSER.windows.onFocusChanged.(remove|has)Listener mismatch #44

Open
someengineer-nordsec opened this issue Dec 20, 2022 · 0 comments
Open

Comments

@someengineer-nordsec
Copy link

someengineer-nordsec commented Dec 20, 2022

Happens on all including 0.1.155

const listener = (windowId: number) => {
      console.log(windowId);
    };

chrome.windows.onFocusChanged.addListener(listener);

chrome.windows.onFocusChanged.removeListener(listener);

chrome.windows.onFocusChanged.hasListener(listener);

addListener

Screenshot 2022-12-20 at 13 28 49

removeListener

Screenshot 2022-12-20 at 13 28 54

typescript error

Screenshot 2022-12-20 at 13 29 02

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