diff --git a/extension/chrome/manifest.json b/extension/chrome/manifest.json index a318730..6cde6bc 100755 --- a/extension/chrome/manifest.json +++ b/extension/chrome/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "__MSG_extensionName__", - "version": "0.4.6", + "version": "0.4.7", "default_locale": "en", "description": "__MSG_extensionDescription__", "permissions": [ diff --git a/extension/firefox/common.js b/extension/firefox/common.js index 737c1ae..e9e80ac 100644 --- a/extension/firefox/common.js +++ b/extension/firefox/common.js @@ -269,7 +269,7 @@ const ua = { {brand: 'Chromium', version: p.browser.major}, {brand: 'Google Chrome', version: p.browser.major} ], - mobile: false + mobile: /Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(s) }; } } @@ -632,7 +632,7 @@ chrome.runtime.onMessage.addListener((request, sender, response) => { if (request.delete) { delete ua._obj[request.cookieStoreId]; } - ua.update(request.value, undefined, request.cookieStoreId); + ua.update(request.value, request.windowId, request.cookieStoreId); } }); diff --git a/extension/firefox/data/popup/index.html b/extension/firefox/data/popup/index.html index 96661ef..b424c48 100644 --- a/extension/firefox/data/popup/index.html +++ b/extension/firefox/data/popup/index.html @@ -1,5 +1,5 @@ - - + +
diff --git a/extension/firefox/data/popup/index.js b/extension/firefox/data/popup/index.js index 8ec7032..e4ad9ab 100644 --- a/extension/firefox/data/popup/index.js +++ b/extension/firefox/data/popup/index.js @@ -323,7 +323,8 @@ document.addEventListener('click', ({target}) => { chrome.runtime.sendMessage({ method: 'request-update', value, - cookieStoreId: tab.cookieStoreId + cookieStoreId: tab.cookieStoreId, + windowId: tab.windowId }); } else if (cmd === 'reset') { diff --git a/extension/firefox/manifest.json b/extension/firefox/manifest.json index 4e42ea0..412bb0a 100755 --- a/extension/firefox/manifest.json +++ b/extension/firefox/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "__MSG_extensionName__", - "version": "0.4.6", + "version": "0.4.7", "default_locale": "en", "description": "__MSG_extensionDescription__", "permissions": [