Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to paste a screenshot on Windows 11 #336

Open
1j01 opened this issue Mar 26, 2024 · 0 comments
Open

Error trying to paste a screenshot on Windows 11 #336

1j01 opened this issue Mar 26, 2024 · 0 comments
Labels

Comments

@1j01
Copy link
Owner

1j01 commented Mar 26, 2024

Trying to paste a screenshot into jspaint.app, I got an error:

TypeError: blob is null

read_image_file@https://jspaint.app/src/functions.js:3515:2
paste_image_from_file@https://jspaint.app/src/functions.js:1578:17
@https://jspaint.app/src/app.js:1381:26
dispatch@https://jspaint.app/lib/jquery-3.4.1.min.js:2:42571
add/v.handle@https://jspaint.app/lib/jquery-3.4.1.min.js:2:40572

DataTransferItem's getAsFile method can return null even when kind is "file" -- WHY??

> item
DataTransferItem { kind: "file", type: "image/png" }

> item.getAsFile()
null
> item.getAsString()
Uncaught TypeError: DataTransferItem.getAsString: At least 1 argument required, but only 0 passed
    <anonymous> debugger eval code:1
    <anonymous> https://jspaint.app/src/app.js:1381
    jQuery 2
debugger eval code:1:6
> item.getAsString((string)=> console.log("got string:", String))
undefined 

This occurred when trying to paste a screenshot of a notification from Windows 11 prompting me to disable notifications from Firefox, even though there haven't been any, and it's very ironically the only annoying notification I'm experiencing. The notification can't be turned off through any proper means..
Is Windows blocking saving the screenshot while the notification's ellipsis menu is open? I wasn't able to save the screenshot.

@1j01 1j01 added the bug label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant