mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-21 23:54:12 +08:00
🔨 Refactor(custom): remove debug log
This commit is contained in:
@@ -357,13 +357,11 @@ function toggleWindow(bounds: IBounds) {
|
||||
|
||||
async function sendClipboardFiles() {
|
||||
const img = clipboard.readImage()
|
||||
console.log('Clipboard image', img.isEmpty())
|
||||
const obj: ImgInfo[] = []
|
||||
if (!img.isEmpty()) {
|
||||
// 从剪贴板来的图片默认转为png
|
||||
// https://github.com/electron/electron/issues/9035
|
||||
const imgPath = clipboard.read('public.file-url')
|
||||
console.log(imgPath)
|
||||
if (imgPath) {
|
||||
const decodePath = ensureFilePath(imgPath)
|
||||
if (decodePath === imgPath) {
|
||||
|
||||
Reference in New Issue
Block a user