DEV Community

Discussion on: A simple technique to promisify Chrome extension API

 
hankchiutw profile image
Hank Chiu

From MDN, it says "Firefox also implements these APIs under the chrome namespace using callbacks".

So, I guess the code toPromise(chrome.tabs.query)({}).then(...); should work on Firefox as well.(hopefully)