2020-03-19 09:03:21 -04:00
|
|
|
import db from '#/datastore'
|
|
|
|
import { clipboard } from 'electron'
|
|
|
|
|
|
|
|
export function handleCopyUrl (str: string): void {
|
2020-05-04 04:50:29 -04:00
|
|
|
if (db.get('settings.autoCopy') !== false) {
|
2020-03-19 09:03:21 -04:00
|
|
|
clipboard.writeText(str)
|
|
|
|
}
|
|
|
|
}
|