Small client updates
This commit is contained in:
parent
583abc5004
commit
ddc1d5bf5a
@ -4,8 +4,8 @@ import './process'
|
||||
|
||||
import Timer from './components/Timer'
|
||||
|
||||
$(() => {
|
||||
// request permission on page load
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
if (!Notification) {
|
||||
alert('Desktop notifications not available in your browser. Try Chromium, Chrome or Firefox.')
|
||||
return
|
||||
@ -13,9 +13,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
if (Notification.permission !== 'granted')
|
||||
Notification.requestPermission()
|
||||
})
|
||||
|
||||
$(() => {
|
||||
const timer = $('.timer')
|
||||
|
||||
Timer.render().replace(timer).getWidget()
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import markoWidgets from 'marko-widgets'
|
||||
import template from './template.marko.js'
|
||||
import template from './template.marko'
|
||||
|
||||
import timeFilter from '../../util/time-filter'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user