homebridge-xbox-tv 2.8.4-beta.21 → 2.8.4-beta.23

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.
@@ -36,16 +36,12 @@
36
36
  homebridge.showSchemaForm();
37
37
  return;
38
38
  }
39
-
40
- //load form
41
- document.getElementById('authorizationManager').style.display = 'block';
39
+ homebridge.showSpinner();
42
40
 
43
41
  //get devices count
44
42
  const devicesCount = pluginConfig[0].devices.length;
45
-
46
- //get the intial from the config and add it to the form
47
43
  for (let i = 0; i < devicesCount; i++) {
48
- //create consoles buttons
44
+ //create buttons
49
45
  const button = document.createElement("button");
50
46
  button.setAttribute("type", "button");
51
47
  button.setAttribute("id", `button${i}`);
@@ -73,6 +69,10 @@
73
69
  const click = i === devicesCount - 1 ? document.getElementById(`button0`).click() : false;
74
70
  const update = i === devicesCount - 1 ? await homebridge.updatePluginConfig(pluginConfig) : false;
75
71
  };
72
+ homebridge.hideSpinner();
73
+
74
+ //load authorizationManager form
75
+ document.getElementById('authorizationManager').style.display = 'block';
76
76
 
77
77
  //watch for changes to the config button
78
78
  document.getElementById('configButton').addEventListener('click', async () => {
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.4-beta.21",
4
+ "version": "2.8.4-beta.23",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",