Skip to content

Commit

Permalink
updated tag presentation rule loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mruac committed Dec 5, 2021
1 parent 6818a42 commit 3456b0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
hrt_session/
__pycache__/
__pycache__/
session.db
4 changes: 2 additions & 2 deletions templates/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $.ajax({

var res = ``;
response['namespaceColors'].forEach(function (v, i) {
res += String.raw`${JSON.stringify(v)}` + `\n`;
res += String.raw`${JSON.stringify(v).replace(/\\\\/g, '\\')}` + `\n`;
});
defaultnamespaceColors = res;
});
Expand All @@ -35,7 +35,7 @@ if ((localStorage.getItem('tagPresentation') != null)) {

var res = ``;
JSON.parse(localStorage.tagPresentation)['namespaceColors'].forEach(function (v, i) {
res += String.raw`${JSON.stringify(v)}` + `\n`;
res += String.raw`${JSON.stringify(v).replace(/\\\\/g, '\\')}` + `\n`;
});
$("#inputTextarea").val(res);
} else {
Expand Down

0 comments on commit 3456b0b

Please sign in to comment.