fixup!
This commit is contained in:
parent
5f0b57bebf
commit
71f4a53b41
|
@ -239,7 +239,7 @@ function saveStyle(style) {
|
||||||
if (reason == 'update' || reason == 'update-digest') {
|
if (reason == 'update' || reason == 'update-digest') {
|
||||||
return calcStyleDigest(style).then(digest => {
|
return calcStyleDigest(style).then(digest => {
|
||||||
style.originalDigest = digest;
|
style.originalDigest = digest;
|
||||||
decide();
|
return decide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (reason == 'import') {
|
if (reason == 'import') {
|
||||||
|
@ -311,7 +311,6 @@ function saveStyle(style) {
|
||||||
|
|
||||||
function deleteStyle({id, notify = true}) {
|
function deleteStyle({id, notify = true}) {
|
||||||
id = Number(id);
|
id = Number(id);
|
||||||
chrome.storage.local.remove('originalDigest' + id, ignoreChromeError); // TODO: remove in the future
|
|
||||||
return dbExec('delete', id).then(() => {
|
return dbExec('delete', id).then(() => {
|
||||||
invalidateCache({deletedId: id});
|
invalidateCache({deletedId: id});
|
||||||
if (notify) {
|
if (notify) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user