+ Bugfix for Android devices
This commit is contained in:
Kevin Röbert 2019-03-18 17:39:47 +01:00
parent 1175d0ff9d
commit d87d88250d
3 changed files with 33 additions and 29 deletions

View File

@ -33,14 +33,12 @@ var lastVisited = "";
function start()
{
changeIcon();
/**
* Save OS Version
*/
browser.runtime.getPlatformInfo(function(info) {
os = info.os;
changeIcon();
/**

View File

@ -55,6 +55,10 @@ function reload()
*/
function checkOSAndroid()
{
browser.runtime.getPlatformInfo().then(function(info) {
os = info.os;
});
if(os == "android")
{
return true;
@ -158,12 +162,14 @@ function increaseURLCounter()
*/
function changeIcon()
{
if(!checkOSAndroid()) {
if(storage.globalStatus){
browser.browserAction.setIcon({path: "img/clearurls.svg"});
} else{
browser.browserAction.setIcon({path: "img/clearurls_gray.svg"});
}
}
}
/**
* Get the badged status from the browser storage and put the value

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ClearURLs",
"version": "1.5.1a",
"version": "1.5.1.5a",
"author": "Kevin R.",
"description": "Remove tracking elements form URLs.",
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",