diff --git a/main.ts b/main.ts index 0c78502..918644b 100644 --- a/main.ts +++ b/main.ts @@ -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); } diff --git a/manifest.json b/manifest.json index e5ccb26..338f43f 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/package.json b/package.json index 73631d2..90085c9 100644 --- a/package.json +++ b/package.json @@ -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": {