Great project! I'd have probably not come across it hadn't it been for Hacktoberfest. 😄
Spotted a minor bug when I started actively using it; on slow networks the delay between clicking the "share" button and the opening of a new tab is significant, during which, spamming the button multiple times opens the new tab as many times.
Before Fix
I clicked / spammed the "share" button 3 times and the new tab is opened thrice.
After Fix
The button is disabled when the fetch inside share(id, data) is being processed and a visual cue is shown to the user by changing the button text.
Great project! I'd have probably not come across it hadn't it been for Hacktoberfest. 😄
Spotted a minor bug when I started actively using it; on slow networks the delay between clicking the "share" button and the opening of a new tab is significant, during which, spamming the button multiple times opens the new tab as many times.
Before Fix
I clicked / spammed the "share" button 3 times and the new tab is opened thrice.
After Fix
The button is disabled when the
fetch
insideshare(id, data)
is being processed and a visual cue is shown to the user by changing the button text.