I'm currently running into the following bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1208775
Long story short, I need to access this.browser instead of window.browser. If I replace my webpack generated file with console.log(this.browser) I get the correct window variable, whereas if I access window.browser I get undefined. The suggested fix is to access this.browser, but I'm unsure of how to do that as a webpack module:
I have a simple browser.js file which I use to export the browser info:
export default window.chrome || window.browser || this.browser;
Because we're in a function context, both window.browser and this.browser are undefined, as well as window.chrome (As I'm developing this in firefox). How would I go about accessing this.browser (this being in the global scope) through webpack?