version 0.4.7

This commit is contained in:
Ray Lothian 2021-05-02 09:06:20 -04:00
parent 00efe329a4
commit d529950a03
5 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "__MSG_extensionName__", "name": "__MSG_extensionName__",
"version": "0.4.6", "version": "0.4.7",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extensionDescription__", "description": "__MSG_extensionDescription__",
"permissions": [ "permissions": [

View file

@ -269,7 +269,7 @@ const ua = {
{brand: 'Chromium', version: p.browser.major}, {brand: 'Chromium', version: p.browser.major},
{brand: 'Google Chrome', 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) { if (request.delete) {
delete ua._obj[request.cookieStoreId]; delete ua._obj[request.cookieStoreId];
} }
ua.update(request.value, undefined, request.cookieStoreId); ua.update(request.value, request.windowId, request.cookieStoreId);
} }
}); });

View file

@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="index.css"> <link rel="stylesheet" href="index.css">

View file

@ -323,7 +323,8 @@ document.addEventListener('click', ({target}) => {
chrome.runtime.sendMessage({ chrome.runtime.sendMessage({
method: 'request-update', method: 'request-update',
value, value,
cookieStoreId: tab.cookieStoreId cookieStoreId: tab.cookieStoreId,
windowId: tab.windowId
}); });
} }
else if (cmd === 'reset') { else if (cmd === 'reset') {

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "__MSG_extensionName__", "name": "__MSG_extensionName__",
"version": "0.4.6", "version": "0.4.7",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extensionDescription__", "description": "__MSG_extensionDescription__",
"permissions": [ "permissions": [