homebridge-xbox-tv 2.8.2-beta.2 → 2.8.2-beta.3

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.
@@ -191,27 +191,13 @@
191
191
  document.getElementById('deviceWebApiControl').disabled = false;
192
192
  break;
193
193
  case 1:
194
- document.getElementById('info').innerHTML = 'Authorization process started, now press the *Authorize Console*.';
194
+ document.getElementById('info').innerHTML = 'Now go to the pop-up window, login to Your Xbox Live account and allow this plugin. Next from the response URI copy the part after *?code=* and paste it to the *Web Api Token*, next press *Activate Console*.';
195
195
  document.getElementById('info').style.color = 'yellow';
196
- document.getElementById('startAuthorizationButton').setAttribute('disabled', 'disabled');
197
- document.getElementById('authorizeConsoleButton').removeAttribute('disabled');
198
- document.getElementById('authorizeConsoleButton').innerText = "Authorize console";
196
+ document.getElementById('startAuthorizationButton').removeAttribute('disabled');
197
+ document.getElementById('startAuthorizationButton').innerText = "Activate console";
199
198
  document.getElementById('deviceWebApiControl').checked = false;
200
199
  document.getElementById('deviceWebApiControl').disabled = true;
201
- this.authorizeConsole = false;
202
- document.getElementById('authorizeConsoleButton').addEventListener('click', async () => {
203
- if (!this.authorizeConsole) {
204
- document.getElementById('info').innerHTML = 'Now go to the pop-up window, login to Your Xbox Live account and allow this plugin. Next from the response URI copy the part after *?code=* and paste it to the *Web Api Token*, next press *Activate Console*.';
205
- document.getElementById('info').style.color = 'yellow';
206
- document.getElementById('authorizeConsoleButton').setAttribute('disabled', 'disabled');
207
- document.getElementById('startAuthorizationButton').removeAttribute('disabled');
208
- document.getElementById('startAuthorizationButton').innerText = "Activate console";
209
- document.getElementById('deviceWebApiControl').checked = false;
210
- document.getElementById('deviceWebApiControl').disabled = true;
211
- await open(info)
212
- this.authorizeConsole = true;
213
- };
214
- });
200
+ await open(info)
215
201
  break;
216
202
  case 2:
217
203
  document.getElementById('info').innerHTML = 'Activation done, now enable *Web Api Control*, restart plugin and have fun!!!';
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.2",
4
+ "version": "2.8.2-beta.3",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",