summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-09-28 17:59:48 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-09-30 14:25:48 +0200
commit8dbba0decaf05851c007dc1031aca1417efb917d (patch)
treee4d00aa1321146b2329d9d7db969d78bc21053f9 /gui/src
parente764979d1d4a8a780c10f956f71886ae11339b5e (diff)
downloadmullvadvpn-8dbba0decaf05851c007dc1031aca1417efb917d.tar.xz
mullvadvpn-8dbba0decaf05851c007dc1031aca1417efb917d.zip
Update @types/node to latest
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/daemon-rpc.ts2
-rw-r--r--gui/src/renderer/components/WireguardKeys.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/main/daemon-rpc.ts b/gui/src/main/daemon-rpc.ts
index 89360fbc15..9df81f119e 100644
--- a/gui/src/main/daemon-rpc.ts
+++ b/gui/src/main/daemon-rpc.ts
@@ -125,7 +125,7 @@ export class DaemonRpc {
private connectionObservers: ConnectionObserver[] = [];
private nextSubscriptionId = 0;
private subscriptions: Map<number, grpc.ClientReadableStream<grpcTypes.DaemonEvent>> = new Map();
- private reconnectionTimeout?: number;
+ private reconnectionTimeout?: NodeJS.Timer;
constructor(connectionParams: string) {
this.client = (new ManagementServiceClient(
diff --git a/gui/src/renderer/components/WireguardKeys.tsx b/gui/src/renderer/components/WireguardKeys.tsx
index e76820b006..4a45d58d36 100644
--- a/gui/src/renderer/components/WireguardKeys.tsx
+++ b/gui/src/renderer/components/WireguardKeys.tsx
@@ -68,7 +68,7 @@ export default class WireguardKeys extends React.Component<IProps, IState> {
public componentDidMount() {
this.verifyKey();
- this.keyAgeUpdateInterval = setInterval(this.setAgeOfKeyStringState, 60 * 1000);
+ this.keyAgeUpdateInterval = window.setInterval(this.setAgeOfKeyStringState, 60 * 1000);
}
public componentWillUnmount() {