1 | // Copyright (c) Microsoft Corporation.
|
2 | // Licensed under the MIT license.
|
3 | // eslint-disable-next-line @azure/azure-sdk/ts-no-window
|
4 | const globalRef = typeof self === "undefined" ? window : self;
|
5 | if (!globalRef) {
|
6 | throw new Error("Could not find global");
|
7 | }
|
8 | const globalCrypto = globalRef.crypto || globalRef.msCrypto;
|
9 | if (!globalCrypto || !globalCrypto.subtle) {
|
10 | throw new Error("Browser does not support cryptography functions");
|
11 | }
|
12 | export { globalCrypto };
|
13 | //# sourceMappingURL=globalCrypto.js.map |
\ | No newline at end of file |