diff --git a/ext/src/global.d.ts b/ext/src/global.d.ts index cda6847..38f3c04 100644 --- a/ext/src/global.d.ts +++ b/ext/src/global.d.ts @@ -8,6 +8,7 @@ declare const APPLICATION_VERSION: string; declare interface Object { + // tslint:disable-next-line:ban-types wrappedJSObject: Object; } diff --git a/ext/src/lib/utils.ts b/ext/src/lib/utils.ts index 8628a12..98d76f8 100644 --- a/ext/src/lib/utils.ts +++ b/ext/src/lib/utils.ts @@ -33,4 +33,5 @@ export function getWindowCenteredProps ( } +// tslint:disable-next-line:max-line-length export const REMOTE_MATCH_PATTERN_REGEX = /^(?:(?:(\*|https?|ftp):\/\/(\*|(?:\*\.(?:[^\/\*:]\.?)+(?:[^\.])|[^\/\*:]*))?)(\/.*)|)$/; diff --git a/ext/src/shim/cast/classes/Session.ts b/ext/src/shim/cast/classes/Session.ts index 9dcd548..75884e8 100755 --- a/ext/src/shim/cast/classes/Session.ts +++ b/ext/src/shim/cast/classes/Session.ts @@ -30,7 +30,9 @@ import { Callbacks const _id = new WeakMap(); -const _messageListeners = new WeakMap>>(); +const _messageListeners = new WeakMap< + Session, Map>>(); + const _updateListeners = new WeakMap>(); const _leaveCallbacks = new WeakMap(); @@ -176,7 +178,9 @@ export default class Session { case "shim:/session/impl_setReceiverMuted": { const { volumeId, error } = message.data; const [ successCallback, errorCallback ] - = _setReceiverMutedCallbacks.get(this).get(volumeId); + = _setReceiverMutedCallbacks + .get(this) + .get(volumeId); if (error && errorCallback) { errorCallback(new _Error(ErrorCode.SESSION_ERROR)); diff --git a/ext/src/shim/cast/index.ts b/ext/src/shim/cast/index.ts index 49df3e5..3221b0d 100755 --- a/ext/src/shim/cast/index.ts +++ b/ext/src/shim/cast/index.ts @@ -27,6 +27,7 @@ import { AutoJoinPolicy import media from "./media"; import { requestSession as requestSessionTimeout } from "../timeout"; + import { onMessage, sendMessageResponse } from "../messageBridge"; diff --git a/ext/src/shim/cast/media/classes/Media.ts b/ext/src/shim/cast/media/classes/Media.ts index 1ded14c..757da65 100644 --- a/ext/src/shim/cast/media/classes/Media.ts +++ b/ext/src/shim/cast/media/classes/Media.ts @@ -117,7 +117,9 @@ export default class Media { case "shim:/media/sendMediaMessageResponse": { const { messageId, error } = message.data; const [ successCallback, errorCallback ] - = _sendMediaMessageCallbacks.get(this).get(messageId); + = _sendMediaMessageCallbacks + .get(this) + .get(messageId); if (error && errorCallback) { errorCallback(new _Error(ErrorCode.SESSION_ERROR));