Skip to content

Commit

Permalink
Merge pull request #659 from Peergos/fix/notes-viewer-math-input
Browse files Browse the repository at this point in the history
Note app - do not display math-input input field when viewing
  • Loading branch information
ianopolous authored Dec 17, 2024
2 parents 57cba46 + 22bf6e8 commit 06fe9e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/apps/markup-viewer/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ function addMathJax(text) {
document.getElementsByTagName("head")[0].appendChild(script);
}
function updateResources() {
const collection = document.getElementsByClassName("math-input");
for(var i=0; i < collection.length; i++) {
let el = collection[i];
el.style.display = 'none';
}
let that = this;
setTimeout(() => {
that.updateResourcesInDoc();
Expand Down

0 comments on commit 06fe9e6

Please sign in to comment.