From 9e45d640bcd4f6c78f337b6cc44716ddd3c26eae Mon Sep 17 00:00:00 2001 From: PhilReact Date: Thu, 23 Jan 2025 23:52:39 +0200 Subject: [PATCH 1/3] fix var bug --- src/main/resources/q-apps/q-apps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/q-apps/q-apps.js b/src/main/resources/q-apps/q-apps.js index 25656370..bdaa9e0f 100644 --- a/src/main/resources/q-apps/q-apps.js +++ b/src/main/resources/q-apps/q-apps.js @@ -288,7 +288,7 @@ window.addEventListener("message", async (event) => { let url; let data = event.data; - + let identifier; switch (data.action) { case "GET_ACCOUNT_DATA": return httpGetAsyncWithEvent(event, "/addresses/" + data.address); @@ -419,7 +419,7 @@ window.addEventListener("message", async (event) => { return httpGetAsyncWithEvent(event, url); case "GET_QDN_RESOURCE_PROPERTIES": - let identifier = (data.identifier != null) ? data.identifier : "default"; + identifier = (data.identifier != null) ? data.identifier : "default"; url = "/arbitrary/resource/properties/" + data.service + "/" + data.name + "/" + identifier; return httpGetAsyncWithEvent(event, url); From e5b6e893cdfa1b0bd9bc3987db015df9d7ef0eee Mon Sep 17 00:00:00 2001 From: PhilReact Date: Fri, 24 Jan 2025 21:30:55 +0200 Subject: [PATCH 2/3] GET_AT missing a slash --- src/main/resources/q-apps/q-apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/q-apps/q-apps.js b/src/main/resources/q-apps/q-apps.js index bdaa9e0f..0e7e4805 100644 --- a/src/main/resources/q-apps/q-apps.js +++ b/src/main/resources/q-apps/q-apps.js @@ -456,7 +456,7 @@ window.addEventListener("message", async (event) => { return httpGetAsyncWithEvent(event, url); case "GET_AT": - url = "/at" + data.atAddress; + url = "/at/" + data.atAddress; return httpGetAsyncWithEvent(event, url); case "GET_AT_DATA": From ecd4233dd0cddd69f6cc892090ce216dc3d6f8a6 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Sun, 26 Jan 2025 00:13:58 +0200 Subject: [PATCH 3/3] fix fetch block qortalRequest --- src/main/resources/q-apps/q-apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/q-apps/q-apps.js b/src/main/resources/q-apps/q-apps.js index 0e7e4805..183998bd 100644 --- a/src/main/resources/q-apps/q-apps.js +++ b/src/main/resources/q-apps/q-apps.js @@ -473,7 +473,7 @@ window.addEventListener("message", async (event) => { case "FETCH_BLOCK": if (data.signature != null) { - url = "/blocks/" + data.signature; + url = "/blocks/signature/" + data.signature; } else if (data.height != null) { url = "/blocks/byheight/" + data.height; }