spot fix: hard overwrite shadow host visibility

This commit is contained in:
nick-delirium 2024-08-30 17:14:12 +02:00
parent db5bf061e0
commit 67c65b845c
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
4 changed files with 9 additions and 3 deletions

View file

@ -248,7 +248,7 @@ export default defineBackground(() => {
});
async function pingJWT(ingest: string): Promise<void> {
const refreshUrl = safeApiUrl(`${ingest}/api/refresh`);
const refreshUrl = safeApiUrl(`${ingest}/api`);
if (!jwtToken) {
if (pingInt) {
clearInterval(pingInt);

View file

@ -29,7 +29,7 @@ interface IControlsBox {
getInitState: () => string;
onRestart: () => void;
getErrorEvents: () => Promise<any>;
getAudioPerm: () => boolean,
getAudioPerm: () => number,
}
function ControlsBox({

View file

@ -21,7 +21,9 @@ export default defineContentScript({
position: "inline",
anchor: "body",
append: "first",
onMount: (container) => {
onMount: (container,s,host) => {
Object.assign(host.style, { visibility: 'visible', display: 'block' });
return render(
() => (
<ControlsBox

View file

@ -8,6 +8,10 @@
all: initial;
}
spot-ui {
visibility: visible!important;
display: block!important;
}
.body {
width: 100vw;