Fix warning in translate test
This commit is contained in:
parent
a22d996aab
commit
c7700f2b96
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ function saveItemsThroughTranslator(translatorType, items) {
|
||||||
} else if (translatorType == "import") {
|
} else if (translatorType == "import") {
|
||||||
translate.setString("");
|
translate.setString("");
|
||||||
}
|
}
|
||||||
translate.setTranslator(buildDummyTranslator(translatorType == "web" ? 4 : 1,
|
translate.setTranslator(buildDummyTranslator(
|
||||||
|
translatorType,
|
||||||
"function detectWeb() {}\n"+
|
"function detectWeb() {}\n"+
|
||||||
"function do"+tyname+"() {\n"+
|
"function do"+tyname+"() {\n"+
|
||||||
" var json = JSON.parse('"+JSON.stringify(items).replace(/['\\]/g, "\\$&")+"');\n"+
|
" var json = JSON.parse('"+JSON.stringify(items).replace(/['\\]/g, "\\$&")+"');\n"+
|
||||||
|
|
Loading…
Add table
Reference in a new issue