Use undefine instead of null

This commit is contained in:
RMidhunSuresh 2022-04-21 14:14:38 +05:30
parent 468b7e1595
commit 1cdc76f5a4
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ export class Platform {
this._serviceWorkerHandler = new ServiceWorkerHandler();
this._serviceWorkerHandler.registerAndStart(assetPaths.serviceWorker);
}
this.notificationService = null;
this.notificationService = undefined;
// Only try to use crypto when olm is provided
if(this._assetPaths.olm) {
this.crypto = new Crypto(cryptoExtras);