From 5f2350a9e79dd335f3260bbb1a236192b0e9507c Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 20 Oct 2020 21:50:21 +0000 Subject: [PATCH] fix(core): update --- ts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/index.ts b/ts/index.ts index 66a432d..a2e4e63 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -29,7 +29,7 @@ export class CsWebclient { plugins.csInterfaces.IWebclientSettings['acceptedCookieLevels'] > { const result = await this.webstore.get('acceptedCookieLevels'); - return result.acceptedCookieLevels; + return result?.acceptedCookieLevels; } public async isCookieLevelStillValid(): Promise {