mirror of
https://github.com/discourse/discourse.git
synced 2025-03-30 02:49:25 +08:00
Revert "FIX: simpler w function check (#7496)"
This reverts commit 25703117188747e4576350961b83247d1a04c1ef.
This commit is contained in:
parent
22d6203eb7
commit
0c0d05e8f2
2
vendor/assets/javascripts/i18n-patches.js
vendored
2
vendor/assets/javascripts/i18n-patches.js
vendored
@ -13,7 +13,7 @@
|
|||||||
return oldI18ntoHumanSize.apply(this, [number, options]);
|
return oldI18ntoHumanSize.apply(this, [number, options]);
|
||||||
};
|
};
|
||||||
|
|
||||||
if ("w" in String.prototype) {
|
if (Ember.typeOf(String.prototype.w) === "function") {
|
||||||
String.prototype.i18n = function(options) {
|
String.prototype.i18n = function(options) {
|
||||||
return I18n.t(String(this), options);
|
return I18n.t(String(this), options);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user