开发者

electron clipboard and nativeIamge api won't work properly on mac

开发者 https://www.devze.com 2022-12-07 19:08 出处:网络
After copy a doc file on desktop, i use this开发者_运维百科 api clipboard.readImage().isEmpty() to judge if it was a picture , it returned true. it should not return true because there is no picture

After copy a doc file on desktop, i use this开发者_运维百科 api clipboard.readImage().isEmpty() to judge if it was a picture , it returned true. it should not return true because there is no picture in clipboard , it was a doc file. It worked correctly on windows.

how could i do to make it return the correct value on mac

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号