mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
upgrade all packages.
This commit is contained in:
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -68,7 +68,7 @@ export interface GuacamoleKeyboardInterface {
|
||||
}
|
||||
|
||||
export default function (element?: Element): GuacamoleKeyboardInterface {
|
||||
var Keyboard = {}
|
||||
const Keyboard = {}
|
||||
|
||||
GuacamoleKeyboard.bind(Keyboard, element)()
|
||||
|
||||
|
Reference in New Issue
Block a user