Browse Source

[Bugfix] Fix worker crash when trying to pass Exception with postMessage

pull/94/head
Yevhen Tiurin 8 years ago
parent
commit
8350b5345f
  1. 3
      src/common/worker.js

3
src/common/worker.js

@ -27,6 +27,9 @@ function dispatchHandlers(packet, send){ @@ -27,6 +27,9 @@ function dispatchHandlers(packet, send){
handleDetect(packet.payload, respond);
}
} catch (err) {
// Prepare exception to travel through postMessage
err = err.toString();
respond.reject(err)
}
}

Loading…
Cancel
Save