Compare commits
1 Commits
v8.0.0
...
b6124f5ee8
Author | SHA1 | Date | |
---|---|---|---|
b6124f5ee8 |
1461
3CX_TAPI.user.js
1461
3CX_TAPI.user.js
File diff suppressed because one or more lines are too long
@ -43,7 +43,7 @@ npm run build
|
|||||||
## distribution
|
## distribution
|
||||||
|
|
||||||
```
|
```
|
||||||
cp "dist/3CX TAPI.prod.user.js" 3CX_TAPI.user.js
|
cp dist/index.prod.user.js 3CX_TAPI.user.js
|
||||||
```
|
```
|
||||||
|
|
||||||
And commit 3CX_TAPI.user.js
|
And commit 3CX_TAPI.user.js
|
||||||
|
@ -109,7 +109,6 @@ 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) {
|
||||||
@ -124,10 +123,7 @@ export class Status {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
setTimeout(() => this.checkStatus(), 10000);
|
||||||
console.log(error);
|
|
||||||
}
|
|
||||||
setTimeout(() => this.checkStatus(), 30000);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user