🐛 Fix: auto-copy option && copy style

auto-copy option not work && clear rules for line breaks when copying
This commit is contained in:
Molunerfinn
2020-05-04 16:50:29 +08:00
parent 2adff1e788
commit b6e3adb7af
5 changed files with 14 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ import db from '#/datastore'
import { clipboard } from 'electron'
export function handleCopyUrl (str: string): void {
if (db.get('settings.autoCopy') === true) {
if (db.get('settings.autoCopy') !== false) {
clipboard.writeText(str)
}
}