Explorar el Código

Handle webkit

master
Roderic Day hace 5 años
padre
commit
5b26f9a4fb
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      pico.js

+ 3
- 2
pico.js Ver fichero

@@ -36,7 +36,7 @@ State.unseen = 0
listen('post', () => {State.unseen += !document.hasFocus(); updateTitle()})
listen('focus', () => {State.unseen = 0; updateTitle()})
const updateTitle = () => {
document.title = `Pico.Chat` + (State.unseen ? ` (${State.unseen})` : ``)
document.title = `pico.chat` + (State.unseen ? ` (${State.unseen})` : ``)
}

/*
@@ -120,7 +120,8 @@ const scrollIntoView = (vnode) => {
vnode.dom.scrollIntoView()
}
const toggleFullscreen = (el) => (event) => {
document.fullscreenElement ? document.exitFullscreen() : el.requestFullscreen()
const requestFullscreen = (el.requestFullscreen || el.webkitRequestFullscreen).bind(el)
document.fullscreenElement ? document.exitFullscreen() : requestFullscreen()
}
const prettyTime = (ts) => {
const dt = new Date(ts)

Cargando…
Cancelar
Guardar