--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/27d90ad6-973b-439f-95ad-2fa3fca4c04d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/fd9412ae-abb7-4f11-9b61-4b0cf39449f6%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c86dcfc5-3d38-4b29-9199-cf7970075243%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/fcc90b63-adc1-4be0-a375-1e3be0e678f1%40googlegroups.com.
We can see what the script is trying to do now: it expects this === window so it can access window.navigator.
But why is this undefined? It's because, at some point, the script is being put into strict mode, which causes this === undefined instead of this === window. We can see that in the webpack-generated main.js:
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c86dcfc5-3d38-4b29-9199-cf7970075243%40googlegroups.com.
As I read this, it's expecting this to === window that is the problem, not the use of "use strict"; maybe I've read this wrong though?
this to a function in strict mode is not forced into being an object (a.k.a. "boxed").window object through this inside a strict mode function.Cannot read property 'navigator' of undefined--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0e36e183-ea78-4be7-bd0d-2fb5bfa3660d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/86a0d5c2-20a1-4770-82fe-5c3b80a12207%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/633716a9-1521-4256-b2e2-0e3ea29850a3%40googlegroups.com.