Chrome extensions use a service worker that does not have a window object.
Firefox addons use a generated background page to run the background script, so they have a window object
Returns
True if the script is running in a background/service worker process, false otherwise.
Chrome extensions use a service worker that does not have a window object. Firefox addons use a generated background page to run the background script, so they have a window object
Returns
True if the script is running in a background/service worker process, false otherwise.