From dfc6fd85919588fdd1cb51e594a082a0c0cc950c Mon Sep 17 00:00:00 2001 From: didierfred <didierfred@gmail.com> Date: Wed, 25 Jul 2018 10:30:36 +0200 Subject: [PATCH] correct bug in import function --- popup/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/popup/config.js b/popup/config.js index 52d755c..9ed84eb 100644 --- a/popup/config.js +++ b/popup/config.js @@ -200,8 +200,9 @@ function readSingleFile(e) try { config = JSON.parse(contents); + // check file format - if (config.format_version && config.target_page) + if (config.format_version) { // if url pattern invalid , set to "" if (!isTargetValid(config.target_page)) config.target_page=""; -- GitLab