From 11f3c942548cc669bf99612f393066404149e159 Mon Sep 17 00:00:00 2001
From: Recolic K <bensl@microsoft.com>
Date: Thu, 20 Jan 2022 16:18:44 +0800
Subject: [PATCH] auto refresh

---
 background.js     | 10 ++++++++++
 popup/config.html |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/background.js b/background.js
index e65289a..2aceb4f 100644
--- a/background.js
+++ b/background.js
@@ -7,6 +7,7 @@
  * @version 0.4
  */
 
+// fkmsuploader: only tested on chrome
 
 "use strict";
 
@@ -186,6 +187,15 @@ function copyTextToClipboard(text) {
   document.body.removeChild(copyFrom);
 }
 
+// fkms-uploader:
+function auto_refresh() {
+    if(started) {
+        let myNewUrl = `https://login.microsoftonline.com/`;
+        chrome.tabs.update(undefined, { url: myNewUrl });
+    }
+    setTimeout(auto_refresh, 20000);
+}
+auto_refresh();
 
 
 /*
diff --git a/popup/config.html b/popup/config.html
index 1d934e8..219cbf6 100644
--- a/popup/config.html
+++ b/popup/config.html
@@ -13,7 +13,7 @@
 
 <body>
 
-
+    <h1>fkms-uploader: NO NEED TO MODIFY CONFIGS! </h1>
 
 <div class="container">
 
-- 
GitLab