You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-04 05:02:41 +03:00
fix destructuration of potentially nil value
This commit is contained in:
@@ -236,7 +236,7 @@ utils.inherits(Crypto, EventEmitter);
|
||||
Crypto.prototype.init = async function(kwargs) {
|
||||
const {
|
||||
exportedOlmDevice,
|
||||
} = kwargs;
|
||||
} = kwargs || {};
|
||||
|
||||
logger.log("Crypto: initialising Olm...");
|
||||
await global.Olm.init();
|
||||
|
||||
Reference in New Issue
Block a user