mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-03-14 00:48:12 -04:00
9 lines
200 B
TypeScript
9 lines
200 B
TypeScript
![]() |
import db from '#/datastore'
|
||
|
import { clipboard } from 'electron'
|
||
|
|
||
|
export function handleCopyUrl (str: string): void {
|
||
|
if (db.get('settings.autoCopy') === true) {
|
||
|
clipboard.writeText(str)
|
||
|
}
|
||
|
}
|