Skip to content

Commit

Permalink
FileListModal: use textContent
Browse files Browse the repository at this point in the history
  • Loading branch information
philips committed Jan 22, 2025
1 parent fc635f1 commit 68d2712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileListModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class FileListModal extends SuggestModal<SupernoteFile> {

// Add directory icon or file icon
const iconEl = container.createSpan({ cls: "suggestion-icon" });
iconEl.innerHTML = file.isDirectory ? "📁" : "📄";
iconEl.textContent = file.isDirectory ? "📁" : "📄";

const contentEl = container.createDiv({ cls: "suggestion-content" });
contentEl.createDiv({ text: file.name, cls: "suggestion-title" });
Expand Down

0 comments on commit 68d2712

Please sign in to comment.