diff --git a/background.js b/background.js index 8a0579e06f89715909bb1c27b142ab2e3e253aef..46c5c3eb3ed883245a1d3e1d69461302a7bc8dba 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));