Chrome support

This commit is contained in:
Kevin Röbert
2019-04-01 23:53:28 +02:00
parent 869cd63e64
commit 03e0580b20
13 changed files with 143 additions and 997 deletions

View File

@@ -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";
}
}