🔨 Refactor(custom): remove debug log

This commit is contained in:
Kuingsmile
2026-06-12 22:58:01 -07:00
parent ecd59c65b0
commit 8d7f77b379

View File

@@ -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) {