added s at the end of http xdxd
This commit is contained in:
@@ -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}`}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user