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

@ -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'
});
}
},