From 6ef6c425fa826152644adb1225c4a5e0ca1a0272 Mon Sep 17 00:00:00 2001 From: Alex / Awex Date: Sat, 26 Jun 2021 03:16:14 -0400 Subject: [PATCH] added s at the end of http xdxd --- assets/js/screenshot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/screenshot.js b/assets/js/screenshot.js index 31d0c6a..dae9a79 100644 --- a/assets/js/screenshot.js +++ b/assets/js/screenshot.js @@ -2,7 +2,7 @@ let url = window.location.hostname async function getFileUrl() { const params = new URLSearchParams(window.location.search) let title = params.get('photo') - let apiurl = `http://${window.location.hostname}/screenshots?title=${title}` + let apiurl = `https://${window.location.hostname}/screenshots?title=${title}` if(title) { try{ @@ -37,7 +37,7 @@ async function getFileUrl() { async function deleteSS() { let title = params.get('photo') var secret = document.querySelector("#secret").value - const delfile = await fetch(`http://${window.location.hostname}/delete/${title}`, { + const delfile = await fetch(`https://${window.location.hostname}/delete/${title}`, { method: "DELETE", headers: { "secret": `${secret}`} })