Skip to content

Commit

Permalink
πŸ› [Frontend] Fix replaceTokens function (#6539)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Oct 15, 2024
1 parent 5dde4a4 commit 5b8fd1a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ qx.Class.define("osparc.utils.Utils", {
FLOATING_Z_INDEX: 110000,

replaceTokens: function(str, key, value) {
// `str` might be a a localized string, get the string first
str = str.toString ? str.toString() : str;
return str.replaceAll("${"+key+"}", value);
},

Expand Down

0 comments on commit 5b8fd1a

Please sign in to comment.