fix lint error
This commit is contained in:
parent
1299e14475
commit
ca8667fc95
5 changed files with 12549 additions and 5 deletions
|
|
@ -573,13 +573,12 @@ export default class Assist {
|
||||||
try {
|
try {
|
||||||
// waiting for a decision on accepting the challenge
|
// waiting for a decision on accepting the challenge
|
||||||
const agreed = await confirmAnswer
|
const agreed = await confirmAnswer
|
||||||
// если отказали, то завершаем вызов
|
// if rejected, then terminate the call
|
||||||
if (!agreed) {
|
if (!agreed) {
|
||||||
initiateCallEnd()
|
initiateCallEnd()
|
||||||
this.options.onCallDeny?.()
|
this.options.onCallDeny?.()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// if rejected, then terminate the call
|
|
||||||
if (!callUI) {
|
if (!callUI) {
|
||||||
callUI = new CallWindow(app.debug.error, this.options.callUITemplate)
|
callUI = new CallWindow(app.debug.error, this.options.callUITemplate)
|
||||||
callUI.setVideoToggleCallback((args: { enabled: boolean }) =>
|
callUI.setVideoToggleCallback((args: { enabled: boolean }) =>
|
||||||
|
|
@ -646,7 +645,7 @@ export default class Assist {
|
||||||
await pc.setRemoteDescription(new RTCSessionDescription(offer));
|
await pc.setRemoteDescription(new RTCSessionDescription(offer));
|
||||||
// create a response to the incoming request
|
// create a response to the incoming request
|
||||||
const answer = await pc.createAnswer();
|
const answer = await pc.createAnswer();
|
||||||
// устанавливаем ответ как локальный
|
// set answer as local description
|
||||||
await pc.setLocalDescription(answer);
|
await pc.setLocalDescription(answer);
|
||||||
// set the response as local
|
// set the response as local
|
||||||
socket.emit('webrtc_call_answer', { from, answer });
|
socket.emit('webrtc_call_answer', { from, answer });
|
||||||
|
|
@ -735,7 +734,7 @@ export default class Assist {
|
||||||
app.nodes.attachNodeCallback((node) => {
|
app.nodes.attachNodeCallback((node) => {
|
||||||
const id = app.nodes.getID(node)
|
const id = app.nodes.getID(node)
|
||||||
if (id && hasTag(node, 'canvas') && !app.sanitizer.isHidden(id)) {
|
if (id && hasTag(node, 'canvas') && !app.sanitizer.isHidden(id)) {
|
||||||
// app.debug.log(`Creating stream for canvas ${id}`)
|
app.debug.log(`Creating stream for canvas ${id}`)
|
||||||
const canvasHandler = new Canvas(
|
const canvasHandler = new Canvas(
|
||||||
node as unknown as HTMLCanvasElement,
|
node as unknown as HTMLCanvasElement,
|
||||||
id,
|
id,
|
||||||
|
|
|
||||||
10418
tracker/tracker-redux/.pnp.cjs
generated
Executable file
10418
tracker/tracker-redux/.pnp.cjs
generated
Executable file
File diff suppressed because one or more lines are too long
2126
tracker/tracker-redux/.pnp.loader.mjs
generated
Normal file
2126
tracker/tracker-redux/.pnp.loader.mjs
generated
Normal file
File diff suppressed because it is too large
Load diff
BIN
tracker/tracker-redux/.yarn/install-state.gz
Normal file
BIN
tracker/tracker-redux/.yarn/install-state.gz
Normal file
Binary file not shown.
|
|
@ -38,5 +38,6 @@
|
||||||
"rollup": "^4.14.0",
|
"rollup": "^4.14.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"typescript": "^4.6.0-dev.20211126"
|
"typescript": "^4.6.0-dev.20211126"
|
||||||
}
|
},
|
||||||
|
"packageManager": "yarn@4.6.0+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue