Fix me misspelling clipboardData which broke paste in chrome

This commit is contained in:
UnknownShadow200 2019-10-12 12:07:10 +11:00
parent e8bc122b8d
commit ba9040b17c

View file

@ -3032,7 +3032,7 @@ void Window_Init(void) {
/* paste text */
EM_ASM(window.addEventListener('paste',
function(e) {
var contents = e.clipboardData ? e.clipboard.getData('text/plain') : window.clipboardData.getData('Text');
var contents = e.clipboardData ? e.clipboardData.getData('text/plain') : window.clipboardData.getData('Text');
ccall('Window_GotClipboardText', 'void', ['string'], [contents]);
});
);