fixes #43
This commit is contained in:
parent
3e947f5f80
commit
5ef9d91871
13 changed files with 50 additions and 29 deletions
|
@ -87,7 +87,9 @@ function update(ua) {
|
|||
document.addEventListener('change', ({target}) => {
|
||||
if (target.closest('#filter')) {
|
||||
localStorage.setItem(target.id, target.value);
|
||||
update();
|
||||
chrome.storage.local.get({
|
||||
ua: ''
|
||||
}, prefs => update(prefs.ua || navigator.userAgent));
|
||||
}
|
||||
if (target.type === 'radio') {
|
||||
document.getElementById('ua').value = target.closest('tr').querySelector('td:nth-child(4)').textContent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue