mirror of
https://github.com/cupcakearmy/ora.git
synced 2025-09-06 00:00:41 +00:00
wrap in try and update more often
This commit is contained in:
@@ -5,10 +5,10 @@ import { insertLog, normalizeTimestamp } from '../shared/db'
|
|||||||
|
|
||||||
browser.browserAction.onClicked.addListener(() => browser.tabs.create({ url: dashboard, active: true }))
|
browser.browserAction.onClicked.addListener(() => browser.tabs.create({ url: dashboard, active: true }))
|
||||||
|
|
||||||
const frequency = 3000
|
const frequency = 1000
|
||||||
|
|
||||||
async function getAllTabs() {
|
async function getAllTabs() {
|
||||||
console.log('Checking...')
|
try {
|
||||||
const tabs = await browser.tabs.query({})
|
const tabs = await browser.tabs.query({})
|
||||||
const windows = await browser.windows.getAll()
|
const windows = await browser.windows.getAll()
|
||||||
const active = tabs
|
const active = tabs
|
||||||
@@ -31,6 +31,7 @@ async function getAllTabs() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
|
Reference in New Issue
Block a user