From 01a7bed1c9de5b49a8498e4e1781e48e7ce97f59 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Mon, 29 Aug 2022 00:13:33 +0200 Subject: [PATCH] Fix this.ping() --- src/usimp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usimp.ts b/src/usimp.ts index 6444fda..b893887 100644 --- a/src/usimp.ts +++ b/src/usimp.ts @@ -328,7 +328,7 @@ export class Session { 'data': data })); - if (cb === null) { + if (cb === undefined) { const responseData = await response; const endTime = performance.now(); responseData.duration = endTime - startTime;