Skip to content

Commit

Permalink
Fix some codefactor warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mossroy committed Jun 6, 2022
1 parent 944b89d commit 437aa8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1515,8 +1515,6 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
}
}

var messageChannel;

var libzimWebWorker = new Worker("a.out.js");

/**
Expand Down Expand Up @@ -1568,7 +1566,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'settingsStore','abstractFilesys
messagePort.postMessage({ 'action': 'giveContent', 'title': title, 'content': '' });
} else if (dirEntry.isRedirect) {
var redirectPath = dirEntry.redirectPath;
// Ask the ServiceWork to send an HTTP redirect to the browser.
// Ask the ServiceWorker to send an HTTP redirect to the browser.
// We could send the final content directly, but it is necessary to let the browser know in which directory it ends up.
// Else, if the redirect URL is in a different directory than the original URL,
// the relative links in the HTML content would fail. See #312
Expand Down

0 comments on commit 437aa8f

Please sign in to comment.