Skip to content

Commit

Permalink
support credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Riessen committed Dec 14, 2023
1 parent c12abc9 commit 1d33ee8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions red/red.cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,6 @@ var RED = (function() {
console.log("Palette editor disabled");
}

RED.sidebar.init();

if (RED.settings.theme("projects.enabled",false)) {
RED.projects.init();
Expand Down Expand Up @@ -901,6 +900,8 @@ var RED = (function() {
$("#red-ui-main-container").show();

loadPluginList();

RED.sidebar.init();
}


Expand Down Expand Up @@ -34448,9 +34449,10 @@ RED.editor = (function() {
var intialTimeout = setTimeout(function() {
timeoutNotification = RED.notify($('<p data-i18n="[prepend]editor.loadCredentials"> <img src="red/images/spin.svg"/></p>').i18n(),{fixed: true})
},800);
let srv = RED.settings.get("dynamicServer", "")

var dashedType = type.replace(/\s+/g, '-');
var credentialsUrl = 'credentials/' + dashedType + "/" + id;
var credentialsUrl = srv + 'credentials/' + dashedType + "/" + id;

$.ajax({
url: credentialsUrl,
Expand Down

0 comments on commit 1d33ee8

Please sign in to comment.