From 9e4faa9a296e09ceb499c20c7b5bd33c447c9d62 Mon Sep 17 00:00:00 2001 From: Jeremy Schomery Date: Tue, 14 Mar 2017 12:32:53 +0330 Subject: [PATCH] compatibility fix for Chrome v57.0.2987.98 based on https://github.com/schomery/stylish-chrome/issues/43#issuecomment-286348011 --- background.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/background.js b/background.js index 9f3e724c..3cdfe973 100644 --- a/background.js +++ b/background.js @@ -196,3 +196,10 @@ chrome.storage.local.get('version', prefs => { }) } }); + +// bouncing back 'updatePopup' to popup +chrome.runtime.onMessage.addListener((request, sender) => { + if (request.method === 'updatePopup') { + chrome.runtime.sendMessage(request); + } +});