Fix warning in translate test

This commit is contained in:
Dan Stillman 2016-11-22 19:06:47 -05:00
parent a22d996aab
commit c7700f2b96

View file

@ -24,7 +24,8 @@ function saveItemsThroughTranslator(translatorType, items) {
} else if (translatorType == "import") {
translate.setString("");
}
translate.setTranslator(buildDummyTranslator(translatorType == "web" ? 4 : 1,
translate.setTranslator(buildDummyTranslator(
translatorType,
"function detectWeb() {}\n"+
"function do"+tyname+"() {\n"+
" var json = JSON.parse('"+JSON.stringify(items).replace(/['\\]/g, "\\$&")+"');\n"+