Skip to content

Commit

Permalink
Merge 05d5961 into 73edabd
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyZhang777 committed Mar 5, 2024
2 parents 73edabd + 05d5961 commit 2b06183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/theme-map/Renderer/ElementRenderTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ class ElementRenderTarget extends RenderTarget {

/**
* async render(data) => DOMNode
* Calls templateFunction(data) and sets value to element.innerHTML, then returns element
* Calls templateFunction(data) and sets value to element.textContnet, then returns element
*/
async render(data) {
if (this._element) {
this._element.innerHTML = this._templateFunction(data);
this._element.textContent = this._templateFunction(data);
}

return this._element;
Expand Down

0 comments on commit 2b06183

Please sign in to comment.