mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 09:34:35 -05:00
Fix me misspelling clipboardData which broke paste in chrome
This commit is contained in:
parent
e8bc122b8d
commit
ba9040b17c
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
});
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue