js-screen-shot icon indicating copy to clipboard operation
js-screen-shot copied to clipboard

在 macos Safari浏览器 截图失败

Open leofx opened this issue 4 weeks ago • 1 comments

Version of js-screen-shot

v1.9.9-rc.29.t

Operating system and its version

MacOS

Browser and its version

MacOS15 Safari浏览器 版本18.1 (20619.2.8.11.10)

Sandbox to reproduce

No response

What happened?

在 electron 中 打包为 windows、macos 应用都正常,windows浏览器环境下也正常使用,但是在 MacOS,Safari浏览器中,截图后,粘贴板没有图片,控制台报错

报错信息

Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

leofx avatar Oct 30 '25 05:10 leofx

Hello @leofx. Your feedback has been received, and you will be notified in the issue area when the problem is resolved. 你好 @leofx,已收到你反馈的问题,问题解决后将在issue区域通知你。

likaia avatar Oct 30 '25 05:10 likaia

Image Image 问题解决了,Safari浏览器 好像不支持异步写入粘贴板,改为同步后没有问题了

leofx avatar Nov 19 '25 05:11 leofx