Eliarh
Eliarh

Reputation: 13

chrome.windows.onRemoved.addListener deprecated?

I'm working on a google chrome extension:

chrome.windows.onRemoved.addListener(function callback)

first

Deprecated javascript symbol - WHERE?

same

chrome.windows.onRemoved.addListener(function(){});

Upvotes: 0

Views: 939

Answers (1)

woxxom
woxxom

Reputation: 73616

This error is shown by your IDE because it doesn't know about chrome API and it thinks you're using the deprecated DOM method MediaQueryList.addListener.

The solution is to install DefinitelyTyped @types/chrome library in your IDE.
If you need an instruction, google up e.g. "how to load definitelytyped in vscode".

Upvotes: 5

Related Questions