Current section

Files

Jump to
webauthn_components priv static support_hook.js
Raw

priv/static/support_hook.js

const SupportHook = {
mounted() {
console.info(`SupportHook mounted`);
const supported = "credentials" in navigator;
if (!supported) {
console.error(`WebAuthn not supported or enabled.`);
}
this.pushEventTo(this.el, "passkeys-supported", { supported });
},
};
module.exports = { SupportHook };