Skip to content

Commit

Permalink
fix: var → const
Browse files Browse the repository at this point in the history
  • Loading branch information
stdword committed Jul 13, 2024
1 parent 07976ba commit bc30ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const ejectPluginCSS = (iframeId: string, label: string) => {
* source: https://stackoverflow.com/a/35385518/7662783
*/
export function htmlToElement(html: string): ChildNode {
var template = document.createElement('template');
const template = document.createElement('template');
html = html.trim(); // Never return a text node of whitespace as the result
template.innerHTML = html;
return template.content.firstChild as ChildNode;
Expand Down

0 comments on commit bc30ea8

Please sign in to comment.