mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-10 12:46:29 +00:00
7 lines
183 B
JavaScript
7 lines
183 B
JavaScript
const ws = new WebSocket(`ws://${location.hostname}:${location.port}`);
|
|
ws.addEventListener('message', (evt) => {
|
|
if(evt.data === 'outputDone') {
|
|
location.reload(true);
|
|
}
|
|
});
|