Set update indicator default state properly.

pull/1049/head
Paul 2021-06-28 10:29:56 +01:00
parent d52d4b35ee
commit 8d346c188c
1 changed files with 1 additions and 0 deletions

View File

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