node-share: awits

Signed-off-by: Varun Patil <radialapps@gmail.com>
pulsejet/aio-hw-docs
Varun Patil 2023-11-13 23:08:15 -08:00
parent 14a890796e
commit e396359011
1 changed files with 2 additions and 2 deletions

View File

@ -154,10 +154,10 @@ export default defineComponent({
async shareOrCopy(url: string) {
if (nativex.has()) {
nativex.shareUrl(url);
await nativex.shareUrl(url);
} else if ('share' in window.navigator) {
await this.copy(url);
window.navigator.share({ title: this.filename, url: url });
await window.navigator.share({ title: this.filename, url: url });
}
},