aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <wk@koszkonutek-tmp.pl.eu.org>2021-05-12 16:01:08 +0200
committerWojtek Kosior <wk@koszkonutek-tmp.pl.eu.org>2021-05-12 16:01:08 +0200
commit9c246cfa2e30c2f7887472084b4ace4ab99b9819 (patch)
treeba4c57c556e53ed5ce716945f96ccbd347a90d98
parent7f368d46ea06164da025c1ac4ed9a65ad23b25ef (diff)
downloadbrowser-extension-9c246cfa2e30c2f7887472084b4ace4ab99b9819.tar.gz
browser-extension-9c246cfa2e30c2f7887472084b4ace4ab99b9819.zip
fix bug when saving page/bundle
-rw-r--r--html/options_main.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/html/options_main.js b/html/options_main.js
index 979fb44..ca591d5 100644
--- a/html/options_main.js
+++ b/html/options_main.js
@@ -214,13 +214,10 @@
let [item, data] = ul.get_work_li_data(ul);
- if (prefix == TYPE_PREFIX.PAGE)
-
- /* Here we fire promises and return without waiting. */
-
- if (ul.state === UL_STATE.EDITING_ENTRY)
- storage.replace(prefix, ul.edited_item, item, data);
+ /* Here we fire promises and return without waiting. */
+ if (ul.state === UL_STATE.EDITING_ENTRY)
+ storage.replace(prefix, ul.edited_item, item, data);
if (ul.state === UL_STATE.ADDING_ENTRY)
storage.set(prefix, item, data);