My code is similar to many examples on the web, including MDN code at https://mdn.github.io/dom-examples/web-share/
btn.addEventListener('click', () => {
navigator.share(shareData)
.then(() =>
console.log('MDN shared successfully');
)
.catch((e) =>
console.error('Error: ' + e);
)
});
Issue:
navigator.share
returns a promise supposed to fail if sharing is denied. In my case it does so, but after several seconds of delay.
My main problem is this delay: I can fallback if I know sharing API is failing, except here I need to wait for an unknown amount of time before the error.
Mode details:
I just tried the demo on Windows 10 on both Chrome and Edge (Stable), and it worked. Maybe an extension is interfering with the API?