Reputation: 13
I'm working on a google chrome extension:
chrome.windows.onRemoved.addListener(function callback)
Deprecated javascript symbol - WHERE?
chrome.windows.onRemoved.addListener(function(){});
Upvotes: 0
Views: 939
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