From e9a0da9fda9a54452cb32f4e23133d50769d1917 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Thu, 10 Apr 2025 00:45:29 +0300 Subject: [PATCH] add support for base64 field --- plugins/plugins/core/qdn/browser/browser.src.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/plugins/core/qdn/browser/browser.src.js b/plugins/plugins/core/qdn/browser/browser.src.js index e13f6878..0ba4ef70 100644 --- a/plugins/plugins/core/qdn/browser/browser.src.js +++ b/plugins/plugins/core/qdn/browser/browser.src.js @@ -1439,7 +1439,7 @@ class WebBrowser extends LitElement { response = JSON.stringify(dataSentBack) break } - if (!data.file && !data.data64) { + if (!data.file && !data.data64 && !data.base64) { let myMsg1 = get("modals.mpchange22") let myMsg2 = get("walletpage.wchange44") await showErrorAndWait("ACTION_FAILED", { id1: myMsg1, id2: myMsg2 }) @@ -1452,7 +1452,7 @@ class WebBrowser extends LitElement { const service = data.service const name = data.name let identifier = data.identifier - let data64 = data.data64 + let data64 = data.data64 || data.base64 const filename = data.filename const title = data.title const description = data.description @@ -1665,7 +1665,7 @@ class WebBrowser extends LitElement { }) continue } - if (!resource.file && !resource.data64) { + if (!resource.file && !resource.data64 && !resource.base64) { const errorMsg = 'No data or file was submitted' failedPublishesIdentifiers.push({ reason: errorMsg, @@ -1676,7 +1676,7 @@ class WebBrowser extends LitElement { const service = resource.service const name = resource.name let identifier = resource.identifier - let data64 = resource.data64 + let data64 = resource.data64 || resource.base64 const filename = resource.filename const title = resource.title const description = resource.description