enable
Last updated
Was this helpful?
To begin interacting with Liquid APIs you'll first need to enable the provider. Calling liquid.enable() will prompt the user for permission to use the Liquid capabilities of the browser. After that, you are free to call any of the other API methods.
async function enable(): void;Example
try {
if(typeof window.liquid !== 'undefined') {
await window.liquid.enable();
}
}
catch(error) {
// User denied permission or cancelled
console.log(error);
}Last updated
Was this helpful?
Was this helpful?

