animation

This commit is contained in:
2021-11-23 14:32:00 +01:00
parent b719d12b93
commit 27cbc8e56e
3 changed files with 18 additions and 9 deletions

View File

@@ -4,7 +4,11 @@ dayjs.extend(duration)
import browser from 'webextension-polyfill'
import { isDev } from '../shared/utils'
import { blocked } from './blocked'
export const buttons = [
...(isDev ? [{ label: 'Dev', duration: dayjs.duration({ seconds: 5 }) }] : []),
{ label: '1 minute', duration: dayjs.duration({ minutes: 1 }) },
{ label: '5 minutes', duration: dayjs.duration({ minutes: 5 }) },
{ label: '15 minutes', duration: dayjs.duration({ minutes: 15 }) },
@@ -17,4 +21,5 @@ export function dismiss(duration) {
duration: duration.asMilliseconds(),
host: window.location.host,
})
blocked.set(false)
}