From 33fa5693ed0df8bdd5bce2443bad0ad8c133ffe7 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 28 Apr 2017 14:05:25 +0300 Subject: [PATCH] make sure style.id is not 0 in saveStyle --- storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage.js b/storage.js index 0959c640..194b300d 100644 --- a/storage.js +++ b/storage.js @@ -226,7 +226,7 @@ function filterStylesInternal({ function saveStyle(style) { - const id = Number(style.id) >= 0 ? Number(style.id) : null; + const id = Number(style.id) || null; const reason = style.reason; const notify = style.notify !== false; const styleDigest = style.styleDigest;