diff --git a/clearurls.js b/clearurls.js index 904799c..8e2eb7e 100644 --- a/clearurls.js +++ b/clearurls.js @@ -709,24 +709,19 @@ function handleActivated(activeInfo) { browser.tabs.onActivated.addListener(handleActivated); /** -* Handle everything asynchronously. -* @type {Promise} +* Check the request. */ function promise(requestDetails) { - var timeout = 1000; - return new Promise((resolve,reject) => { - window.setTimeout(() => { - if(isDataURL(requestDetails)) - { - resolve({}); - } - else { - var ret = clearUrl(requestDetails); - resolve(ret); - } - },timeout); - }); + if(isDataURL(requestDetails)) + { + return {}; + } + else { + var ret = clearUrl(requestDetails); + return ret; + } + } /** diff --git a/core_js/write_version.js b/core_js/write_version.js index 9331d9c..d0f2307 100644 --- a/core_js/write_version.js +++ b/core_js/write_version.js @@ -2,5 +2,5 @@ * This file writes only the version into every page. * @return version */ -var version = "1.2.1.0"; +var version = "1.2.1.1"; $('#version').text(version); diff --git a/html/popup.html b/html/popup.html index b74383e..119d462 100644 --- a/html/popup.html +++ b/html/popup.html @@ -104,8 +104,10 @@