mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 01:51:37 -04:00
Do not error log if nav share not present
This commit is contained in:
@@ -170,7 +170,9 @@ export async function mobileShare(url: string) {
|
||||
})
|
||||
return true
|
||||
} catch (e) {
|
||||
console.error('Failed to share', e)
|
||||
if (!(e instanceof Error && e.message.includes('navigator.share is not a function'))) {
|
||||
console.error('Failed to share', e)
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user