homebridge-xbox-tv 2.8.2-beta.13 → 2.8.2-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
//create consoles buttons
|
|
59
59
|
const button = document.createElement("button");
|
|
60
60
|
button.setAttribute("type", "button");
|
|
61
|
-
button.setAttribute("id",
|
|
61
|
+
button.setAttribute("id", `button${i}`);
|
|
62
62
|
button.setAttribute("class", "btn btn-secondary");
|
|
63
63
|
button.innerText = pluginConfig[0].devices[i].name || 'Not set';
|
|
64
64
|
button.style.width = '160px';
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
document.body.appendChild(button);
|
|
67
67
|
|
|
68
68
|
//get actuall value on console select
|
|
69
|
-
document.getElementById(
|
|
69
|
+
document.getElementById(`button${i}`).addEventListener('click', async () => {
|
|
70
70
|
document.querySelector('#deviceNameInput').innerHTML = pluginConfig[0].devices[i].name || '';
|
|
71
71
|
document.querySelector('#deviceHostInput').value = pluginConfig[0].devices[i].host || '';
|
|
72
72
|
document.querySelector('#deviceLiveId').value = pluginConfig[0].devices[i].xboxLiveId || '';
|
|
@@ -74,6 +74,8 @@
|
|
|
74
74
|
document.querySelector('#deviceWebApiControl').checked = pluginConfig[0].devices[i].webApiControl || false;
|
|
75
75
|
this.deviceIndex = i;
|
|
76
76
|
});
|
|
77
|
+
|
|
78
|
+
document.getElementById('info').innerHTML = `button${i}`;
|
|
77
79
|
};
|
|
78
80
|
|
|
79
81
|
//check token length and set buttons name and checkbock state after open
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Xbox TV",
|
|
3
3
|
"name": "homebridge-xbox-tv",
|
|
4
|
-
"version": "2.8.2-beta.
|
|
4
|
+
"version": "2.8.2-beta.14",
|
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|