It appears that there is a slight bug in the handling of the data of logout event -
the javascript should be testing the data field of the data field for the logout
instruction.
Signed-off-by: Andrew Thornton <art27@cantab.net>
} else if (event.data.type === 'error') {
console.error(event.data);
} else if (event.data.type === 'logout') {
- if (event.data !== 'here') {
+ if (event.data.data !== 'here') {
return;
}
worker.port.postMessage({
} else if (event.data.type === 'error') {
console.error(event.data);
} else if (event.data.type === 'logout') {
- if (event.data !== 'here') {
+ if (event.data.data !== 'here') {
return;
}
worker.port.postMessage({