You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-07 23:02:56 +03:00
We can always import these now
This commit is contained in:
@@ -29,13 +29,8 @@ import MemoryCryptoStore from '../../../lib/crypto/store/memory-crypto-store.js'
|
|||||||
import MockStorageApi from '../../MockStorageApi';
|
import MockStorageApi from '../../MockStorageApi';
|
||||||
import testUtils from '../../test-utils';
|
import testUtils from '../../test-utils';
|
||||||
|
|
||||||
// Crypto and OlmDevice won't import unless we have global.Olm
|
import OlmDevice from '../../../lib/crypto/OlmDevice';
|
||||||
let OlmDevice;
|
import Crypto from '../../../lib/crypto';
|
||||||
let Crypto;
|
|
||||||
if (global.Olm) {
|
|
||||||
OlmDevice = require('../../../lib/crypto/OlmDevice');
|
|
||||||
Crypto = require('../../../lib/crypto');
|
|
||||||
}
|
|
||||||
|
|
||||||
const Olm = global.Olm;
|
const Olm = global.Olm;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user