This PR fixes 2 issues that happens in the chrome extension's background process.
"window is not defined" - happening because we are including the polyfills for the browser which attempts to add the browser into window object, which does not exist in the background process.
"Only a single offscreen document may be created." - happening because we are running browser.runtime.getURL twice.
This PR fixes 2 issues that happens in the chrome extension's background process.
"window is not defined" - happening because we are including the polyfills for the browser which attempts to add the![image](https://github.com/superhero-com/superhero-wallet/assets/8217670/cbcb38f8-3edc-4042-af1d-2a227d6af00b)
browser
intowindow
object, which does not exist in the background process."Only a single offscreen document may be created." - happening because we are running![image](https://github.com/superhero-com/superhero-wallet/assets/8217670/cb96d2e5-e8e2-4560-ae60-99ad0c8784b3)
browser.runtime.getURL
twice.