homebridge-xbox-tv 2.8.2-beta.7 → 2.8.2-beta.8

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.
@@ -53,8 +53,9 @@
53
53
 
54
54
  //get devices count
55
55
  const devicesCount = pluginConfig[0].devices.length;
56
+ this.deviceIndex = 0;
56
57
 
57
- // get the intial from the config and add it to the form
58
+ //get the intial from the config and add it to the form
58
59
  for (let i = 0; i < devicesCount; i++) {
59
60
  //create consoles buttons
60
61
  const button = document.createElement("button");
@@ -75,11 +76,10 @@
75
76
  document.querySelector('#deviceWebApiControl').checked = pluginConfig[0].devices[i].webApiControl || false;
76
77
  this.deviceIndex = i;
77
78
  });
78
- this.deviceIndex = 0;
79
79
  };
80
80
 
81
81
  //set page to the erste console after open
82
- document.getElementById('button1').click();
82
+ document.getElementById('#button0').click();
83
83
 
84
84
  //check token length and set buttons name and checkbock state after open
85
85
  const tokenLength = (document.querySelector('#deviceTokenInput').value).length || 0;
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.7",
4
+ "version": "2.8.2-beta.8",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",