Skip to content

Commit a6d4c80

Browse files
committed
Specify iframe background
1 parent b8957e9 commit a6d4c80

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/components/IFrame.astro

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ const { src }: Props = Astro.props;
6565

6666
if (iframe) {
6767
iframe.addEventListener("load", () => {
68-
// Display white background (for sites with undefined backgrounds)
69-
iframe.classList.add("loaded");
70-
7168
// Remove background static
7269
canvas.remove();
7370
});
@@ -80,10 +77,7 @@ const { src }: Props = Astro.props;
8077
height: 100%;
8178
display: block;
8279
border: none;
83-
84-
&.loaded {
85-
background-color: white;
86-
}
80+
background: #000000;
8781
}
8882

8983
#static {

src/components/Television.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ const { activeProgram, channelId, channelName } = Astro.props;
2929
justify-content: center;
3030
position: fixed;
3131
inset: 0;
32-
background: #000000;
3332
}
3433
</style>

0 commit comments

Comments
 (0)