From 4d82da52e1c3110d697af14243378546b08c7dbe Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Jan 2020 19:07:31 -0400 Subject: [PATCH] Delete unused brackets --- www/js/app.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index 7cd8090d..73e19e91 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -87,7 +87,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles // Title for current url. var curTitle = "A/index"; - + /** * Resize the IFrame height, so that it fills the whole available height in the window */ @@ -1022,9 +1022,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles // Early return if article's title not equal current url's title var matchUrl = dirEntry['namespace'] + "/" + dirEntry["url"]; - if(matchUrl !== curTitle) { - return; - } + if(matchUrl !== curTitle) return; if (contentInjectionMode === 'serviceworker') { // In ServiceWorker mode, we simply set the iframe src. @@ -1162,9 +1160,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles } // Early return if article's title not equal current url's title var matchUrl = dirEntry['namespace'] + "/" + dirEntry["url"]; - if(matchUrl !== curTitle) { - return; - } + if(matchUrl !== curTitle) return; // Replaces ZIM-style URLs of img, script, link and media tags with a data-kiwixurl to prevent 404 errors [kiwix-js #272 #376] // This replacement also processes the URL to remove the path so that the URL is ready for subsequent jQuery functions