From 057f8a5d25d12c6dd055ed048605dd6366d1a8f6 Mon Sep 17 00:00:00 2001 From: didierfred <didierfred@gmail.com> Date: Sat, 10 Mar 2018 22:48:08 +0100 Subject: [PATCH] fix a bug in load config 1.0 --- background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 8a0579e..46c5c3e 100644 --- a/background.js +++ b/background.js @@ -20,9 +20,9 @@ if (localStorage.getItem('config')) config= JSON.parse(localStorage.getItem('config')); // If config 1.0 (Simple Modify headers V1.2) , save to format 1.1 - if (config.version=="1.0") + if (config.format_version=="1.0") { - config.version="1.1"; + config.format_version="1.1"; for (var line of config.headers) line.apply_on="req"; console.log("save new config"+JSON.stringify(config)); localStorage.setItem("config",JSON.stringify(config)); -- GitLab