Skip to content

Commit

Permalink
🐛 Fix theme application in popup
Browse files Browse the repository at this point in the history
  • Loading branch information
ssakone committed Dec 25, 2023
1 parent 3a24999 commit a20bc38
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
storePopup.set({ computePosition, autoUpdate, offset, shift, flip, arrow });
if (typeof document !== 'undefined') profileController.loadTheme();
onMount(() => {
profileController.loadDuration();
NostrUtil.prepareRelayPool();
Expand Down
1 change: 0 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import { PageSettings, PageHome, PageAddProfile } from '$lib/Pages';
// Set theme based on local storage
if (typeof document !== 'undefined') profileController.loadTheme();
const promise = profileController.loadProfiles();
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/popup/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
});
</script>

<div class="w-full h-full flex flex-col p-4 mx-auto items-center bg-[#222222]">
<div class="w-full h-full flex flex-col p-4 mx-auto items-center dark:bg-[#222222] bg-white">
{#if parameter?.url}
<div class="w-full bg-surface-400 rounded-lg dark:bg-black bg-opacity-50 h-[72px]">
<div
Expand Down

0 comments on commit a20bc38

Please sign in to comment.