Skip to content

Commit 826cf49

Browse files
authored
Merge pull request #161 from matrix-org/florianduros/update-js-crypto
js: Replace legacy imports by new crypto api
2 parents 62886b7 + cebef6d commit 826cf49

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/api/js/js-sdk/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
<script type="module">
66
import { Buffer } from "buffer";
77
window.Buffer = Buffer;
8-
import { decodeRecoveryKey } from "matrix-js-sdk/src/crypto/recoverykey";
8+
import { VerificationPhase, VerifierEvent, decodeRecoveryKey, CryptoEvent } from "matrix-js-sdk/src/crypto-api";
99
window.decodeRecoveryKey = decodeRecoveryKey;
10-
import { VerificationPhase, VerifierEvent } from "matrix-js-sdk/src/crypto-api/verification";
1110
window.VerificationPhase = VerificationPhase;
1211
window.VerifierEvent = VerifierEvent;
13-
import { CryptoEvent } from "matrix-js-sdk/src/crypto";
1412
window.CryptoEvent = CryptoEvent;
1513
import * as sdk from "matrix-js-sdk/src/index";
1614
window.matrix = sdk;

0 commit comments

Comments
 (0)