This commit is contained in:
nizune 2021-06-28 11:36:46 +02:00
commit 8935c26dfb

View file

@ -6,6 +6,7 @@ import { internalSubscribe } from "../../lib/eventEmitter";
import { useContext, useEffect, useState } from "preact/hooks"; import { useContext, useEffect, useState } from "preact/hooks";
var pendingUpdate = false; var pendingUpdate = false;
internalSubscribe('PWA', 'update', () => pendingUpdate = true);
export default function UpdateIndicator() { export default function UpdateIndicator() {
const [ pending, setPending ] = useState(pendingUpdate); const [ pending, setPending ] = useState(pendingUpdate);