Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Sep 15, 2023
1 parent d3cdfd4 commit f30217b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2152,9 +2152,6 @@ function pushBrowserHistoryState (title, titleSearch) {
* @param {String} contentType The mimetype of the downloadable file, if known
*/
function goToArticle (path, download, contentType) {
var message = path.match(/(?:^|\/)([^/]{1,13})[^/]*?$/);
message = message ? message[1] + '...' : '...';
uiUtil.spinnerDisplay(true, (translateUI.t('spinner-loading') || 'Loading') + ' ' + message);
selectedArchive.getDirEntryByPath(path).then(function (dirEntry) {
var mimetype = contentType || dirEntry ? dirEntry.getMimetype() : '';
if (dirEntry === null || dirEntry === undefined) {
Expand Down

0 comments on commit f30217b

Please sign in to comment.