Skip to content
Snippets Groups Projects
Commit 431a86c2 authored by insert's avatar insert
Browse files

Set update indicator default state properly.

parent 4a8561b6
No related merge requests found
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment