Fix web worker that wasnt terminating

This commit is contained in:
billsonnn 2024-03-30 10:08:40 -04:00
parent a893f89066
commit abf11af448

View File

@ -149,6 +149,8 @@ export const ChatWidgetView: FC<{}> = props =>
return () => return () =>
{ {
worker.postMessage({ action: 'STOP' }); worker.postMessage({ action: 'STOP' });
worker.terminate();
} }
}, [ getScrollSpeed, removeHiddenChats, setChatMessages ]); }, [ getScrollSpeed, removeHiddenChats, setChatMessages ]);