diff --git a/hot-reload.js b/hot-reload.js index 07bacd4..4888b39 100644 --- a/hot-reload.js +++ b/hot-reload.js @@ -22,12 +22,8 @@ const reload = () => { chrome.tabs.query ({ active: true, currentWindow: true }, tabs => { // NB: see https://github.com/xpl/crx-hotreload/issues/5 if (tabs[0]) { chrome.tabs.reload (tabs[0].id) } - { - setTimeout(function () { - chrome.runtime.reload () - }, 500) - } + setTimeout(() => { chrome.runtime.reload () }, 500) }) }