Skip to content

Commit 23b9c82

Browse files
authored
clipboardchange explainer: Fix the PNG MIME type (#1096)
At first I was confused about what the example was trying to communicate, but I think it's just a typo?
1 parent 9a55431 commit 23b9c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ClipboardAPI/clipboard-change-event-explainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ interface ClipboardChangeEvent : Event {
9999
function onClipboardChanged(event) {
100100
document.getElementById("text_paste_button").disabled = !(event.types.includes('text/plain'));
101101
document.getElementById("html_paste_button").disabled = !(event.types.includes('text/html'));
102-
document.getElementById("png_paste_button").disabled = !(event.types.includes('img/png'));
102+
document.getElementById("png_paste_button").disabled = !(event.types.includes('image/png'));
103103
}
104104

105105
navigator.clipboard.addEventListener("clipboardchange", onClipboardChanged);

0 commit comments

Comments
 (0)