diff --git a/background/navigator-util.js b/background/navigator-util.js index ea233aca..fe573049 100644 --- a/background/navigator-util.js +++ b/background/navigator-util.js @@ -14,7 +14,7 @@ const navigatorUtil = (() => { } function initUrlChange() { - if (!handler.urlChange) { + if (handler.urlChange) { return; } handler.urlChange = []; diff --git a/background/style-manager.js b/background/style-manager.js index 3946cd56..ce8fe20f 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -37,7 +37,7 @@ const styleManager = (() => { }); function handleLivePreviewConnections() { - chrome.runtime.onConnect(port => { + chrome.runtime.onConnect.addListener(port => { if (port.name !== 'livePreview') { return; } diff --git a/edit.html b/edit.html index 4fe6708b..e838a65b 100644 --- a/edit.html +++ b/edit.html @@ -137,8 +137,11 @@ - - -