Skip to content

Commit

Permalink
Fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Sep 3, 2019
1 parent e4c59ea commit 01048f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/client/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,15 @@ require("./discovery.js");
windowUtil(qunitHtmlFile, function(testWindow) {
let timer = null;
let testResult = {};
let QUnit, accessError = false;
let QUnit;
let accessError = false;
try {
QUnit = testWindow.contentWindow.QUnit;
} catch (err) {
console.error(err);
if (err.name === "TypeError" && err.message === "Permission denied") {
accessError = true;
} else {
throw err;
}
}

Expand Down

0 comments on commit 01048f4

Please sign in to comment.