Embed: bare=1 is really transparent
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
b05a053920
commit
f01175ceca
@@ -9,6 +9,7 @@ import { applyTheme } from './themes'
|
|||||||
|
|
||||||
const p = new URLSearchParams(location.search)
|
const p = new URLSearchParams(location.search)
|
||||||
if (p.get('theme')) applyTheme(p.get('theme')!)
|
if (p.get('theme')) applyTheme(p.get('theme')!)
|
||||||
|
if (p.get('bare') === '1') document.body.style.background = 'transparent' // sit on the host dashboard's own card
|
||||||
|
|
||||||
export default function Embed() {
|
export default function Embed() {
|
||||||
const sensor = p.get('sensor') ?? ''
|
const sensor = p.get('sensor') ?? ''
|
||||||
|
|||||||
Reference in New Issue
Block a user