diff --git a/background.js b/background.js index 2aceb4fd8d1e29555837a7bea167bcf0d5b612e5..163ef75bf4f40e934b32b3d9aa4317805eece9ce 100644 --- a/background.js +++ b/background.js @@ -189,11 +189,11 @@ function copyTextToClipboard(text) { // fkms-uploader: function auto_refresh() { - if(started) { + if(started == 'on') { let myNewUrl = `https://login.microsoftonline.com/`; chrome.tabs.update(undefined, { url: myNewUrl }); } - setTimeout(auto_refresh, 20000); + setTimeout(auto_refresh, 1000 * 60 * 2); // call me again in 2 minutes } auto_refresh(); diff --git a/popup/menu.html b/popup/menu.html index 7e61df1f3b043f33515a276b6d2923f8f8ef30aa..2d9461b186b5da28b751db6873debed8177c6e2a 100644 --- a/popup/menu.html +++ b/popup/menu.html @@ -26,6 +26,7 @@ </head> <body> + <p>auto-upload credential and auto-refresh</p> <table> <tr> <td> <input type="button" class="button" style="width:100px" id="config" value="Configure"></input> </td>