Skip to content

Commit

Permalink
Added missing timeout (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrmannplatz authored and Svish committed Sep 25, 2020
1 parent 31a8b5e commit 6ddf5fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gatsby.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ Cypress.on('window:load', (win) => {
}

const source = new EventSource(`${baseUrl}/__webpack_hmr`);
source.onopen = () => console.debug(LOG_TAG, 'Connected to HMR event source');
let timeout;

source.onopen = () => console.debug(LOG_TAG, 'Connected to HMR event source');
source.addEventListener('message', function (e) {
const { action } = JSON.parse(e.data);
switch (action) {
Expand Down

0 comments on commit 6ddf5fd

Please sign in to comment.