mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 12:54:25 +08:00

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.