mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 18:46:50 +08: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.
|
||
---|---|---|
.. | ||
src | ||
addon-main.cjs | ||
package.json |