Fix for 0.107
This commit is contained in:
parent
2e1d1cd6c5
commit
9196265d0a
File diff suppressed because one or more lines are too long
@ -16,5 +16,6 @@ class BrowserPlayerEditor extends LitElement {
|
|||||||
|
|
||||||
if(!customElements.get("browser-player-editor")) {
|
if(!customElements.get("browser-player-editor")) {
|
||||||
customElements.define("browser-player-editor", BrowserPlayerEditor);
|
customElements.define("browser-player-editor", BrowserPlayerEditor);
|
||||||
registerCard("browser-player", "Browser Player");
|
window.customCards = window.customCards || [];
|
||||||
|
window.customCards.push({type:"browser-player", name: "Browser Player", preview: true});
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,12 @@ class BrowserMod {
|
|||||||
if(serviceData && serviceData.deviceID) {
|
if(serviceData && serviceData.deviceID) {
|
||||||
if(Array.isArray(serviceData.deviceID)) {
|
if(Array.isArray(serviceData.deviceID)) {
|
||||||
const index = serviceData.deviceID.indexOf('this');
|
const index = serviceData.deviceID.indexOf('this');
|
||||||
if(index !== -1)
|
if(index !== -1) {
|
||||||
|
serviceData = JSON.parse(JSON.stringify(serviceData));
|
||||||
serviceData.deviceID[index] = deviceID;
|
serviceData.deviceID[index] = deviceID;
|
||||||
|
}
|
||||||
} else if(serviceData.deviceID === "this") {
|
} else if(serviceData.deviceID === "this") {
|
||||||
|
serviceData = JSON.parse(JSON.stringify(serviceData));
|
||||||
serviceData.deviceID = deviceID;
|
serviceData.deviceID = deviceID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user