From ae09855e6447c9109cb769cd6ef321fd5a242e8b Mon Sep 17 00:00:00 2001 From: Dylan Ayrey Date: Sun, 29 Jan 2023 17:06:04 -0800 Subject: [PATCH] Fixingnulladditionajs (#28) * removing auth on image load * chagning links * fixing allowing null js * going through all the sh --------- Co-authored-by: counter --- api.js | 2 ++ front-end/src/layout/dashboard/DashboardLayout.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api.js b/api.js index 3b76246..f8763a2 100644 --- a/api.js +++ b/api.js @@ -697,6 +697,8 @@ async function set_up_api_server(app) { // data: for inline extra JS. if(req.body.chainload_uri) { user.additionalJS = req.body.chainload_uri; + }else if (req.body.chainload_uri === ""){ + user.additionalJS = null; } if(req.body.send_alert_emails !== undefined) { diff --git a/front-end/src/layout/dashboard/DashboardLayout.vue b/front-end/src/layout/dashboard/DashboardLayout.vue index ff29c1c..a580231 100644 --- a/front-end/src/layout/dashboard/DashboardLayout.vue +++ b/front-end/src/layout/dashboard/DashboardLayout.vue @@ -20,7 +20,7 @@