Skip to content

Commit

Permalink
empty instead of innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
Opisek committed Feb 7, 2024
1 parent 26b632f commit 4f2d609
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function fixOrder(status: { [key: string]: StatusBarElementStatus }) {

const allElements = orderedElements.concat(orphans);

statusBar.innerHTML = "";
statusBar.empty();
for (const element of allElements) statusBar.appendChild(element as HTMLElement);
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "statusbar-organizer",
"name": "Status Bar Organizer",
"version": "1.2.0",
"version": "1.2.1",
"minAppVersion": "0.15.0",
"description": "Lets you rearrange and hide specific status bar elements.",
"author": "Kacper Darowski",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-statusbar-organizer",
"version": "1.2.0",
"version": "1.2.1",
"description": "Arrange and hide status bar elements.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 4f2d609

Please sign in to comment.