added s at the end of http xdxd

This commit is contained in:
Alex / Awex
2021-06-26 03:16:14 -04:00
parent 0d792dabb3
commit 6ef6c425fa
+2 -2
View File
@@ -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}`}
})