spot fix: hard overwrite shadow host visibility
This commit is contained in:
parent
db5bf061e0
commit
67c65b845c
4 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ interface IControlsBox {
|
|||
getInitState: () => string;
|
||||
onRestart: () => void;
|
||||
getErrorEvents: () => Promise<any>;
|
||||
getAudioPerm: () => boolean,
|
||||
getAudioPerm: () => number,
|
||||
}
|
||||
|
||||
function ControlsBox({
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -8,6 +8,10 @@
|
|||
all: initial;
|
||||
}
|
||||
|
||||
spot-ui {
|
||||
visibility: visible!important;
|
||||
display: block!important;
|
||||
}
|
||||
|
||||
.body {
|
||||
width: 100vw;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue