diff --git a/popup/config.js b/popup/config.js index b2023abc6ff62e432cbd020d3fbcad7ec5aaaced..09f14dbbdf91d8c6304622bc3b8258a70e93002f 100644 --- a/popup/config.js +++ b/popup/config.js @@ -374,7 +374,7 @@ function loadConfiguration(configuration) { config = {format_version:"1.2",target_page:"",headers:headers,debug_mode:false,show_comments:true,use_url_contains:false}; } else { - alert("invalid file format"); + alert("Invalid file format"); return; } } @@ -387,11 +387,16 @@ function loadConfiguration(configuration) { // store the conf in the local storage localStorage.setItem("config",JSON.stringify(config)); - // load the new conf + + // load the new conf + reloadConfigPage(); +} + + +function reloadConfigPage() { chrome.runtime.sendMessage("reload"); - // reload the configuration page with the new conf document.location.href="config.html"; -} + } /**