mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 09:49:28 +08:00
fallback prompt for copy button in insecure contexts
This commit is contained in:
@@ -20,12 +20,13 @@ export async function copyToClipboard(content: string) {
|
|||||||
description: 'Copied to clipboard',
|
description: 'Copied to clipboard',
|
||||||
})
|
})
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
toast({
|
prompt(
|
||||||
duration,
|
'Automatic copy requires a secure context (https, localhost, or *.localhost). Please copy manually:',
|
||||||
description: 'Failed to copy',
|
content
|
||||||
})
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const verifyAuth = () => {
|
const verifyAuth = () => {
|
||||||
pb.collection('users')
|
pb.collection('users')
|
||||||
.authRefresh()
|
.authRefresh()
|
||||||
|
Reference in New Issue
Block a user