1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 21:08:07 +00:00

Changing this to self in emscripten post

This commit is contained in:
Karel Bilek 2017-05-04 02:34:41 +02:00 committed by Pavol Rusnak
parent fa82ba6d3f
commit 8b47323c05
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ function processMessage(event) {
data['version'], data['version'],
!!data['segwit'] !!data['segwit']
); );
postMessage({ self.postMessage({
'addresses': addresses, 'addresses': addresses,
'firstIndex': data['firstIndex'], 'firstIndex': data['firstIndex'],
'lastIndex': data['lastIndex'] 'lastIndex': data['lastIndex']
@ -111,5 +111,5 @@ function processMessage(event) {
} }
if (ENVIRONMENT_IS_WORKER) { if (ENVIRONMENT_IS_WORKER) {
this['onmessage'] = processMessage; self.onmessage = processMessage;
} }

File diff suppressed because one or more lines are too long