Merge branch 'master' of github-ray:ray-lothian/UserAgent-Switcher

This commit is contained in:
Ray Lothian 2022-04-11 02:18:35 -04:00
commit 7ba2801918
2 changed files with 4 additions and 4 deletions

View file

@ -10,9 +10,9 @@ YouTube Review:
Download Links:
* Chrome: https://chrome.google.com/webstore/detail/user-agent-switcher-and-m/bhchdcejhohfmigjafbampogmaanbfkg
* Firefox: https://addons.mozilla.org/en-US/firefox/addon/user-agent-string-switcher/
* Firefox: https://addons.mozilla.org/firefox/addon/user-agent-string-switcher/
* Edge: https://microsoftedge.microsoft.com/addons/detail/useragent-switcher-and-m/cnjkedgepfdpdbnepgmajmmjdjkjnifa
* Opera: https://addons.opera.com/en/extensions/details/user-agent-switcher-8/
* Opera: https://addons.opera.com/extensions/details/user-agent-switcher-8/
Usage Instruction:
* https://add0n.com/useragent-switcher.html

View file

@ -333,7 +333,7 @@ const ua = {
const o = ua.object(null, windowId, tab.cookieStoreId);
chrome.browserAction.setBadgeText({
tabId,
text: o && o.platform ? o.platform.substr(0, 3) : ''
text: o && o.platform ? o.platform.slice(0, 3) : ''
});
}));
}
@ -341,7 +341,7 @@ const ua = {
const o = ua.object(tabId, undefined, cookieStoreId);
chrome.browserAction.setBadgeText({
tabId,
text: o.platform ? o.platform.substr(0, 3) : 'BOT'
text: o.platform ? o.platform.slice(0, 3) : 'BOT'
});
}
},