🐛 Fix: paste url encoding bug

ISSUES CLOSED: #454
This commit is contained in:
Molunerfinn
2020-06-28 15:30:58 +08:00
parent a693544291
commit 59d3eba86d
3 changed files with 20 additions and 3 deletions

View File

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