Fix popup inline style install/uninstall

This commit is contained in:
Rob Garrison 2018-11-15 07:46:52 -06:00
parent 59c02dfbed
commit 1ff89acda3
2 changed files with 2 additions and 1 deletions

View File

@ -252,6 +252,7 @@ const styleManager = (() => {
method, method,
style: { style: {
id: data.id, id: data.id,
md5Url: data.md5Url,
enabled: data.enabled enabled: data.enabled
}, },
reason, reason,

View File

@ -132,7 +132,7 @@ window.addEventListener('showStyles:done', function _() {
}, {passive: true}); }, {passive: true});
} }
addEventListener('styleDeleted', ({detail: {id}}) => { addEventListener('styleDeleted', ({detail: {style: {id}}}) => {
const result = processedResults.find(r => r.installedStyleId === id); const result = processedResults.find(r => r.installedStyleId === id);
if (result) { if (result) {
result.installed = false; result.installed = false;