Fix error running tests in translation-server

This commit is contained in:
Dan Stillman 2016-05-27 04:37:06 -04:00
parent 34208f92f7
commit 849d206f87

View file

@ -397,7 +397,10 @@ Zotero_TranslatorTester.prototype.fetchPageAndRunTest = function(test, testDoneC
true
);
hiddenBrowser.docShell.allowMetaRedirects = true;
// No hidden browser returned from translation-server processDocuments()
if (hiddenBrowser) {
hiddenBrowser.docShell.allowMetaRedirects = true;
}
};
/**