Enabling a style overwrites 'Add Style' content with enabled style #174

This commit is contained in:
Jason 2016-06-03 22:03:08 -05:00
parent b9cec8d4f6
commit a5e3a1e3dd

View File

@ -1616,12 +1616,12 @@ function getParams() {
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
switch (request.method) {
case "styleUpdated":
if (styleId == request.id) {
if (styleId && styleId == request.style.id) {
initWithStyle(request.style);
}
break;
case "styleDeleted":
if (styleId == request.id) {
if (styleId && styleId == request.style.id) {
window.close();
break;
}