webUPI.enable()
Method
async function enable(): void;
Example
try {
if (typeof window.webUPI !== 'undefined') {
await window.webUPI.enable();
}
}
catch (error) {
// User denied permission or cancelled
console.log(error);
}Last updated