We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfac727 commit 9c74110Copy full SHA for 9c74110
src/vector/index.ts
@@ -67,6 +67,10 @@ function checkBrowserFeatures(): boolean {
67
// although this would start to make (more) assumptions about how rust-crypto loads its wasm.
68
window.Modernizr.addTest("wasm", () => typeof WebAssembly === "object" && typeof WebAssembly.Module === "function");
69
70
+ // Check that the session is in a secure context otherwise most Crypto & WebRTC APIs will be unavailable
71
+ // https://developer.mozilla.org/en-US/docs/Web/API/Window/isSecureContext
72
+ window.Modernizr.addTest("securecontext", () => window.isSecureContext);
73
+
74
const featureList = Object.keys(window.Modernizr) as Array<keyof ModernizrStatic>;
75
76
let featureComplete = true;
0 commit comments