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 {