UUID switching, and add new message button fix #96
@@ -255,7 +255,7 @@ async function fetchUUIDCheck(givenUUID , strategy){
|
|||||||
|
|
||||||
switch(strategy){
|
switch(strategy){
|
||||||
case "new":{
|
case "new":{
|
||||||
await fetch(url + "{givenUUID}/", { method : "GET" })
|
await fetch(url + givenUUID+ "/", { method : "GET" })
|
||||||
.then ( response => response.text() )
|
.then ( response => response.text() )
|
||||||
.then ( data => {
|
.then ( data => {
|
||||||
newUUID = data;
|
newUUID = data;
|
||||||
@@ -264,7 +264,7 @@ async function fetchUUIDCheck(givenUUID , strategy){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "restore":{
|
case "restore":{
|
||||||
await fetch(url + "{givenUUID}" + "/" + "{clientUUID}/" , { method: "GET" })
|
await fetch(url + givenUUID + "/" + clientUUID + "/" , { method: "GET" })
|
||||||
.then (response => response.text() )
|
.then (response => response.text() )
|
||||||
.then (data => {
|
.then (data => {
|
||||||
newUUID = data;
|
newUUID = data;
|
||||||
|
|||||||
Reference in New Issue
Block a user