mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00

In the Gecko JavaScript engine the Object prototype has a method 'watch()' and 'unwatch()'. This causes strange error messages displayed, if 'watch' and 'unwatch' are not translated in the chosen localization. The i18n module cannot handle, if it gets a function for the translation. This is a quick fix that removes the 'watch' and 'unwatch' properties from the Object prototype. See also: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/watch
4 lines
128 B
JavaScript
4 lines
128 B
JavaScript
if (Object.prototype.hasOwnProperty('watch')) {
|
|
Object.prototype.watch = undefined;
|
|
Object.prototype.unwatch = undefined;
|
|
}
|