Skip to content
Snippets Groups Projects
Commit bcc99b9f authored by didierfred's avatar didierfred
Browse files

comments

parent 1f847b75
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ function start_modify() ...@@ -37,7 +37,7 @@ function start_modify()
document.getElementById("start_stop").value = "Start"; document.getElementById("start_stop").value = "Start";
} }
// reload config tab , to get the start/stop information correct // if exists reload config tab , to get the start/stop information correct
var promise_tabs = browser.tabs.query({currentWindow: true}); var promise_tabs = browser.tabs.query({currentWindow: true});
promise_tabs.then(reloadConfigTab); promise_tabs.then(reloadConfigTab);
...@@ -54,7 +54,7 @@ function reloadConfigTab(tabs) ...@@ -54,7 +54,7 @@ function reloadConfigTab(tabs)
if (tab.url.startsWith(browser.extension.getURL(""))) config_tab = tab; if (tab.url.startsWith(browser.extension.getURL(""))) config_tab = tab;
} }
// config tab exits , reload it // config tab exists , reload it
if (config_tab) browser.tabs.reload(config_tab.id); if (config_tab) browser.tabs.reload(config_tab.id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment