mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-12-16 23:54:58 +00:00
qr code
This commit is contained in:
@@ -9,3 +9,8 @@ export function copy(value: string) {
|
||||
const msg = get(t)('common.copied_to_clipboard')
|
||||
notify.success(msg)
|
||||
}
|
||||
|
||||
export function getCSSVariable(variable: string): string {
|
||||
if (typeof window === 'undefined') return ''
|
||||
return window.getComputedStyle(window.document.body).getPropertyValue(variable)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user