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