mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Fix untranslated watch/unwatch for gecko (#606)
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
This commit is contained in:
parent
952c2e1ae2
commit
43f3a2f3d5
1 changed files with 4 additions and 0 deletions
4
client/config/gecko-fix.js
Normal file
4
client/config/gecko-fix.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
if (Object.prototype.hasOwnProperty('watch')) {
|
||||
Object.prototype.watch = undefined;
|
||||
Object.prototype.unwatch = undefined;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue