aboutsummaryrefslogtreecommitdiff
path: root/src/features/suggestionsGui/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-23 17:56:38 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-23 17:56:38 +0800
commita38700b5ae8822f159c7457d4d67e53f75ca63fa (patch)
tree13097a8f1a5e1e3b71a0948f9b876e6ec3d1c600 /src/features/suggestionsGui/index.js
parent644a192508dba2719c24ecd3c0b3295120b0fbb5 (diff)
downloadSoopyV2-a38700b5ae8822f159c7457d4d67e53f75ca63fa.tar.gz
SoopyV2-a38700b5ae8822f159c7457d4d67e53f75ca63fa.tar.bz2
SoopyV2-a38700b5ae8822f159c7457d4d67e53f75ca63fa.zip
Support lets encript prepairing for hypixel api change
Diffstat (limited to 'src/features/suggestionsGui/index.js')
-rw-r--r--src/features/suggestionsGui/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/features/suggestionsGui/index.js b/src/features/suggestionsGui/index.js
index 04630ca..bb9f454 100644
--- a/src/features/suggestionsGui/index.js
+++ b/src/features/suggestionsGui/index.js
@@ -81,7 +81,7 @@ class SuggestionPage extends GuiPage {
this.pages[0].addChild(this.suggestionsArea)
- fetch("http://soopy.dev/api/soopyv2/suggestionTags.json").json().then(data => {
+ fetch("https://soopy.dev/api/soopyv2/suggestionTags.json").json().then(data => {
this.tags = data
})
@@ -89,7 +89,7 @@ class SuggestionPage extends GuiPage {
}
async loadSuggestionPage() {
- let data = await fetch("http://soopy.dev/api/soopyv2/suggestion/new").json()
+ let data = await fetch("https://soopy.dev/api/soopyv2/suggestion/new").json()
this.suggestionElements = {}
this.suggestionsArea.clearChildren()
@@ -125,7 +125,7 @@ class SuggestionPage extends GuiPage {
}
async loadSuggestion(id) {
- let data = await fetch("http://soopy.dev/api/soopyv2/suggestion/" + id + "/user/" + Player.getUUID().toString().replace(/-/g, "")).json()
+ let data = await fetch("https://soopy.dev/api/soopyv2/suggestion/" + id + "/user/" + Player.getUUID().toString().replace(/-/g, "")).json()
let sideBarElm = new SoopyGuiElement().setLocation(0, 0, 1, 1).setScrollable(true)
if (!data.success) {
sideBarElm.addChild(new SoopyTextElement().setText("§cError loading suggestion").setMaxTextScale(3).setLocation(0.5, 0.5, 0.5, 0.5))
@@ -152,13 +152,13 @@ class SuggestionPage extends GuiPage {
drop.addEvent(new SoopyContentChangeEvent().setHandler((newVal) => {
if (newVal === "delete") {
- fetch("http://soopy.dev/api/soopyv2/suggestion/" + id + "/delete/" + this.password).load()
+ fetch("https://soopy.dev/api/soopyv2/suggestion/" + id + "/delete/" + this.password).load()
this.loadSuggestionPage()
this.closeSidebarPage()
return
}
- fetch("http://soopy.dev/api/soopyv2/suggestion/" + id + "/status/" + newVal + "/" + this.password).load()
+ fetch("https://soopy.dev/api/soopyv2/suggestion/" + id + "/status/" + newVal + "/" + this.password).load()
this.loadSuggestion(id)
}))
@@ -201,7 +201,7 @@ class SuggestionPage extends GuiPage {
}
voteSuggestion(id, type) {
- fetch("http://soopy.dev/api/soopyv2/suggestion/" + id + "/vote/" + (type) + "/" + Player.getUUID().toString().replace(/-/g, "")).load()
+ fetch("https://soopy.dev/api/soopyv2/suggestion/" + id + "/vote/" + (type) + "/" + Player.getUUID().toString().replace(/-/g, "")).load()
this.loadSuggestion(id)
}