From 04ccf3d7627376dcdb187de7343ce3b61ff94fe1 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Sat, 19 Feb 2022 00:32:14 +0530 Subject: [PATCH] requests http:// to https:// --- public/fn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/fn.js b/public/fn.js index 4bdbe97..1c3e36b 100644 --- a/public/fn.js +++ b/public/fn.js @@ -7,7 +7,7 @@ function exchangeAPI(api, options) { let curPos = exchangeAPI.curPos || 0; if (curPos >= nodeList.length) return resolve('No Nodes online'); - let url = "http://" + nodeURL[nodeList[curPos]]; + let url = "https://" + nodeURL[nodeList[curPos]]; (options ? fetch(url + api, options) : fetch(url + api)) .then(result => resolve(result)).catch(error => { console.warn(nodeList[curPos], 'is offline');