From e9e682b1a77b80d2ac117207be9e2eb40ea5fd99 Mon Sep 17 00:00:00 2001
From: Recolic K <bensl@microsoft.com>
Date: Thu, 20 Jan 2022 16:22:54 +0800
Subject: [PATCH] final tweak

---
 background.js   | 4 ++--
 popup/menu.html | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/background.js b/background.js
index 2aceb4f..163ef75 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 7e61df1..2d9461b 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>
-- 
GitLab