mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 01:55:19 -04:00
Fix me misspelling clipboardData which broke paste in chrome
This commit is contained in:
parent
e8bc122b8d
commit
ba9040b17c
@ -3032,7 +3032,7 @@ void Window_Init(void) {
|
|||||||
/* paste text */
|
/* paste text */
|
||||||
EM_ASM(window.addEventListener('paste',
|
EM_ASM(window.addEventListener('paste',
|
||||||
function(e) {
|
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]);
|
ccall('Window_GotClipboardText', 'void', ['string'], [contents]);
|
||||||
});
|
});
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user