From ac5e9b965a11937a9a12c7cb8a8a900d143a6a71 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 6 Jun 2017 04:40:08 +0300 Subject: [PATCH] saveStyle's codeIsUpdated can be true or false, not undefined --- storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage.js b/storage.js index 3ffb020f..c56fc4f8 100644 --- a/storage.js +++ b/storage.js @@ -260,7 +260,7 @@ function saveStyle(style) { if (reason == 'update-digest' && oldStyle.originalDigest == style.originalDigest) { return style; } - codeIsUpdated = !existed || style.sections && !styleSectionsEqual(style, oldStyle); + codeIsUpdated = !existed || 'sections' in style && !styleSectionsEqual(style, oldStyle); style = Object.assign({}, oldStyle, style); return write(style, store); });