upgrade all packages.

This commit is contained in:
Miroslav Šedivý
2020-11-10 21:11:44 +01:00
parent 3214d35f24
commit 71a6cea82e
5 changed files with 722 additions and 288 deletions

View File

@ -136,7 +136,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
// Screen Events
/////////////////////////////
protected [EVENT.SCREEN.CONFIGURATIONS]({ configurations }: ScreenConfigurationsPayload) {
let data = []
const data = []
for (const i of Object.keys(configurations)) {
const { width, height, rates } = configurations[i]
if (width >= 600 && height >= 300) {
@ -153,7 +153,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
}
}
let conf = data.sort((a, b) => {
const conf = data.sort((a, b) => {
if (b.width === a.width && b.height == a.height) {
return b.rate - a.rate
} else if (b.width === a.width) {

View File

@ -94,7 +94,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
this._peer.setRemoteDescription({ type: 'offer', sdp })
let answer = await this._peer.createAnswer()
const answer = await this._peer.createAnswer()
this._peer!.setLocalDescription(answer)
if (!answer.sdp) {

View File

@ -68,7 +68,7 @@ export interface GuacamoleKeyboardInterface {
}
export default function (element?: Element): GuacamoleKeyboardInterface {
var Keyboard = {}
const Keyboard = {}
GuacamoleKeyboard.bind(Keyboard, element)()