mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
76b75fae36
We have identified some third-party analytics scripts which do things like `window.I18n = window.I18n` 🤦♂️. This leads to the window object having a null I18n property, but `"I18n" in globalThis` returns true.
This commit checks whether `window.I18n` is a truthy value.