aboutsummaryrefslogtreecommitdiff
path: root/js/background.js
diff options
context:
space:
mode:
authorGokulakrishna K Sudharsan <gokulakrishnaks@gmail.com>2018-08-17 19:32:38 +0530
committerGokulakrishna K Sudharsan <gokulakrishnaks@gmail.com>2018-08-17 19:32:38 +0530
commit52f9492de5ef5b95828ba0ed56ce51a8113f88b2 (patch)
treea90b1a6a2552f9b56e7fbf4b0b832c98420599aa /js/background.js
parent39f27b1eeef38978fb4f4cd0ab733e1e91ed1e8c (diff)
Hide Sync option for firefox in settings page. Show basic notification for Opera as it doesn't support LIST type of chrome
Diffstat (limited to 'js/background.js')
-rw-r--r--js/background.js2
1 files changed, 1 insertions, 1 deletions
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({