mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -05:00
Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite
This commit is contained in:
commit
8935c26dfb
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue