mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
3aad35209a
Add browser reload on file change/rebuild
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);
|
|
}
|
|
});
|