From afe96a2c52383f1cc73ce9daa7d2bbcd2ee0df05 Mon Sep 17 00:00:00 2001 From: Alex / Awex Date: Wed, 14 Jul 2021 09:20:38 -0400 Subject: [PATCH] Update screenshot.js --- assets/js/screenshot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/screenshot.js b/assets/js/screenshot.js index 207f426..527b910 100644 --- a/assets/js/screenshot.js +++ b/assets/js/screenshot.js @@ -1,8 +1,8 @@ async function getFileUrl() { const params = new URLSearchParams(window.location.search) let title = params.get('photo') - let apiurl = `http://${window.location.host}/screenshots?title=${title}` - let pageURL = `http://${window.location.host}/view?photo=${title}` + let apiurl = `https://${window.location.host}/screenshots?title=${title}` + let pageURL = `https://${window.location.host}/view?photo=${title}` if(title) { try{ @@ -37,7 +37,7 @@ async function getFileUrl() { const params = new URLSearchParams(window.location.search) let title = params.get('photo') var secret = document.querySelector("#secret").value - const delfile = await fetch(`http://${window.location.host}/delete/${title}`, { + const delfile = await fetch(`https://${window.location.host}/delete/${title}`, { method: "DELETE", headers: { "secret": `${secret}`} })