Version 8.0.0.
This commit is contained in:
1 parent
cd303869c8
commit
a4a346b48d
3 files changed
+7963
-5388
No files matched your search
+7957
-5386
File diff suppressed because it is too large.
Load diff
@@ -43,7 +43,7 @@ npm run build
|
|||||||
## distribution
|
## distribution
|
||||||
|
|
||||||
```
|
```
|
||||||
cp dist/index.prod.user.js 3CX_TAPI.user.js
|
cp "dist/3CX TAPI.prod.user.js" 3CX_TAPI.user.js
|
||||||
```
|
```
|
||||||
|
|
||||||
And commit 3CX_TAPI.user.js
|
And commit 3CX_TAPI.user.js
|
||||||
|
|||||||
+5
-1
@@ -109,6 +109,7 @@ export class Status {
|
|||||||
|
|
||||||
private async checkStatus() {
|
private async checkStatus() {
|
||||||
if (this._enabled) {
|
if (this._enabled) {
|
||||||
|
try {
|
||||||
var response = await axios.get<ZcStatus>('http://cpatapi.cpsrvweb2016.cp-austria.at/availability/' + encodeURIComponent(this._user));
|
var response = await axios.get<ZcStatus>('http://cpatapi.cpsrvweb2016.cp-austria.at/availability/' + encodeURIComponent(this._user));
|
||||||
|
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
@@ -123,7 +124,10 @@ export class Status {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setTimeout(() => this.checkStatus(), 10000);
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
setTimeout(() => this.checkStatus(), 30000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user