- Add a Zotero.wait() to translator caching, which I may or may not have tried before and which may or may not improve Firefox responsiveness during translator caching
- Only check first 1024 chars of translator file for JSON Not going on the 2.0 branch
This commit is contained in:
parent
14b62e27e2
commit
c558111269
|
@ -78,6 +78,8 @@ Zotero.Translators = new function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Zotero.wait();
|
||||
i++;
|
||||
}
|
||||
|
||||
|
@ -226,7 +228,7 @@ Zotero.Translators = new function() {
|
|||
*/
|
||||
Zotero.Translator = function(file) {
|
||||
// Maximum length for the info JSON in a translator
|
||||
const MAX_INFO_LENGTH = 4096;
|
||||
const MAX_INFO_LENGTH = 1024;
|
||||
const infoRe = /{(?:(?:"(?:[^"\r\n]*(?:\\")?)*")*[^}"]*)*}/;
|
||||
|
||||
this.file = file;
|
||||
|
|
Loading…
Reference in New Issue
Block a user