mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-15 21:55:36 +07:00
Chrome support
This commit is contained in:
@@ -69,7 +69,7 @@ function reload()
|
||||
*/
|
||||
function checkOSAndroid()
|
||||
{
|
||||
browser.runtime.getPlatformInfo().then(function(info) {
|
||||
chrome.runtime.getPlatformInfo(function(info) {
|
||||
os = info.os;
|
||||
});
|
||||
|
||||
@@ -207,3 +207,14 @@ function getCurrentURL()
|
||||
{
|
||||
return currentURL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for browser.
|
||||
*/
|
||||
function getBrowser() {
|
||||
if(typeof InstallTrigger !== 'undefined') {
|
||||
return "Firefox";
|
||||
} else {
|
||||
return "Chrome";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user