From 52f9492de5ef5b95828ba0ed56ce51a8113f88b2 Mon Sep 17 00:00:00 2001 From: Gokulakrishna K Sudharsan Date: Fri, 17 Aug 2018 19:32:38 +0530 Subject: Hide Sync option for firefox in settings page. Show basic notification for Opera as it doesn't support LIST type of chrome --- js/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/background.js') diff --git a/js/background.js b/js/background.js index e087c22..00ba31b 100644 --- a/js/background.js +++ b/js/background.js @@ -380,7 +380,7 @@ function sendNotifications(redirect, originalUrl, redirectedUrl ){ // So let's use useragent. // Opera UA has both chrome and OPR. So check against that ( Only chrome which supports list) - other browsers to get BASIC type notifications. - if(navigator.userAgent.toLowerCase().indexOf("chrome") > -1 && navigator.userAgent.toLowerCase().indexOf("OPR")<0){ + if(navigator.userAgent.toLowerCase().indexOf("chrome") > -1 && navigator.userAgent.toLowerCase().indexOf("opr")<0){ var items = [{title:"Original page: ", message: originalUrl},{title:"Redirected to: ",message:redirectedUrl}]; var head = "Redirector - Applied rule : " + redirect.description; chrome.notifications.create({ -- cgit v1.2.3