Hotfix for performance issue and center "rules"-btn

- Delete temporary the async promise function, because it works not like
it should work. (We will test some methods to increase the performance,
but the performance is already okay)
+ Add suggestion from @grenzor #21 to center the "rules-status"-button
This commit is contained in:
Kevin Röbert
2018-01-09 13:20:33 +01:00
parent 03920709ce
commit 6c42b3617c
4 changed files with 16 additions and 19 deletions

View File

@@ -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;
}
}
/**