Skip to content

Commit

Permalink
Fix splitting tags in microfrontend.js not working
Browse files Browse the repository at this point in the history
Fix split method not using a separator
Remove "v" prefix for plugin versions
  • Loading branch information
buehlefs committed Nov 17, 2022
1 parent 1e649b1 commit 0308ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qhana_plugin_runner/static/microfrontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function onPluginUrlResponseMessage(data) {
input.dispatchEvent(new InputEvent("change", { data: data.pluginUrl, cancelable: false }));
var pluginNameSpan = document.querySelector(`.selected-plugin-name[data-input-id=${data.inputKey}]`);
if (pluginNameSpan != null) {
pluginNameSpan.textContent = `${data.pluginName || "unknown"} (v${data.pluginVersion || "?"})`;
pluginNameSpan.textContent = `${data.pluginName || "unknown"} (${data.pluginVersion || "?"})`;
if (pluginNameSpan.parentNode.hasAttribute("hidden")) {
pluginNameSpan.parentNode.removeAttribute("hidden");
pluginNameSpan.parentNode.setAttribute("aria-live", "polite");
Expand Down Expand Up @@ -252,7 +252,7 @@ function instrumentForm() {
if (pluginTags == null) {
pluginTags = [];
} else {
pluginTags = pluginTags.split();
pluginTags = pluginTags.split(/\s+/);
}
var requestMessage = {
type: "request-plugin-url",
Expand Down

0 comments on commit 0308ba7

Please sign in to comment.