From 1ff89acda3e2fc42d41e24011b8dc7e53e11e52a Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Thu, 15 Nov 2018 07:46:52 -0600 Subject: [PATCH] Fix popup inline style install/uninstall --- background/style-manager.js | 1 + popup/search-results.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/background/style-manager.js b/background/style-manager.js index a8946485..25f649b8 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -252,6 +252,7 @@ const styleManager = (() => { method, style: { id: data.id, + md5Url: data.md5Url, enabled: data.enabled }, reason, diff --git a/popup/search-results.js b/popup/search-results.js index 59bfe113..611a18e9 100755 --- a/popup/search-results.js +++ b/popup/search-results.js @@ -132,7 +132,7 @@ window.addEventListener('showStyles:done', function _() { }, {passive: true}); } - addEventListener('styleDeleted', ({detail: {id}}) => { + addEventListener('styleDeleted', ({detail: {style: {id}}}) => { const result = processedResults.find(r => r.installedStyleId === id); if (result) { result.installed = false;