Use undefine instead of null

This commit is contained in:
RMidhunSuresh 2022-04-21 14:14:38 +05:30
parent 468b7e1595
commit 1cdc76f5a4

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);