Skip to content

Commit

Permalink
Bugfix: themes with caps don't uninstall properly
Browse files Browse the repository at this point in the history
  • Loading branch information
MotorTruck1221 committed Dec 28, 2024
1 parent 3e84469 commit 1898048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/catalog/InstalledPlugins.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="parent" class="flex flex-row flex-wrap gap-4 items-center font-roboto justify-center">
</div>
<div class="w-0 h-0 visibility-none hidden"> <asset-loader /> </div>
<div class="w-0 h-0 visibility-none hidden"> <asset-loader1 /> </div>
<script>
type Assets = {
description: string,
Expand Down Expand Up @@ -99,5 +99,5 @@
})();
}
}
customElements.define('asset-loader', AssetLoader);
customElements.define('asset-loader1', AssetLoader);
</script>
2 changes: 1 addition & 1 deletion src/utils/settings/marketplace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const marketPlaceSettings = {
if (p === "theme") {
let items = localStorage.getItem(AppearanceSettings.themes) as any;
items ? (items = JSON.parse(items)) : (items = []);
if (items.find((theme: any) => theme === packageName.toLowerCase())) {
if (items.find((theme: any) => theme === packageName)) {
const idx = items.indexOf(packageName.toLowerCase());
items.splice(idx, 1);
localStorage.setItem(AppearanceSettings.themes, JSON.stringify(items));
Expand Down

0 comments on commit 1898048

Please sign in to comment.