diff options
Diffstat (limited to 'ext/js/comm')
-rw-r--r-- | ext/js/comm/anki-connect.js | 2 | ||||
-rw-r--r-- | ext/js/comm/api.js | 4 | ||||
-rw-r--r-- | ext/js/comm/clipboard-reader.js | 2 | ||||
-rw-r--r-- | ext/js/comm/frame-ancestry-handler.js | 2 | ||||
-rw-r--r-- | ext/js/comm/frame-client.js | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/comm/anki-connect.js b/ext/js/comm/anki-connect.js index 7ff8d0e1..bd9a69a2 100644 --- a/ext/js/comm/anki-connect.js +++ b/ext/js/comm/anki-connect.js @@ -318,7 +318,7 @@ export class AnkiConnect { * @param {?string[]} actions A list of actions to check for * @returns {Promise<import('anki').ApiReflectResult>} Information about the APIs. */ - async apiReflect(scopes, actions=null) { + async apiReflect(scopes, actions = null) { const result = await this._invoke('apiReflect', {scopes, actions}); if (!(typeof result === 'object' && result !== null)) { throw this._createUnexpectedResultError('object', result); diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js index 26218595..35a66d9e 100644 --- a/ext/js/comm/api.js +++ b/ext/js/comm/api.js @@ -482,7 +482,7 @@ export class API { * @param {number} [timeout] * @returns {Promise<TReturn>} */ - _invokeWithProgress(action, params, onProgress0, timeout=5000) { + _invokeWithProgress(action, params, onProgress0, timeout = 5000) { return new Promise((resolve, reject) => { /** @type {?chrome.runtime.Port} */ let port = null; @@ -554,7 +554,7 @@ export class API { * @param {import('core').SerializableObject} [params] * @returns {Promise<TReturn>} */ - _invoke(action, params={}) { + _invoke(action, params = {}) { const data = {action, params}; return new Promise((resolve, reject) => { try { diff --git a/ext/js/comm/clipboard-reader.js b/ext/js/comm/clipboard-reader.js index 364e31a3..a6d1c068 100644 --- a/ext/js/comm/clipboard-reader.js +++ b/ext/js/comm/clipboard-reader.js @@ -26,7 +26,7 @@ export class ClipboardReader { * Creates a new instances of a clipboard reader. * @param {{document: ?Document, pasteTargetSelector: ?string, richContentPasteTargetSelector: ?string}} details Details about how to set up the instance. */ - constructor({document=null, pasteTargetSelector=null, richContentPasteTargetSelector=null}) { + constructor({document = null, pasteTargetSelector = null, richContentPasteTargetSelector = null}) { /** @type {?Document} */ this._document = document; /** @type {?import('environment').Browser} */ diff --git a/ext/js/comm/frame-ancestry-handler.js b/ext/js/comm/frame-ancestry-handler.js index e4d08f28..b91046bc 100644 --- a/ext/js/comm/frame-ancestry-handler.js +++ b/ext/js/comm/frame-ancestry-handler.js @@ -109,7 +109,7 @@ export class FrameAncestryHandler { * @param {number} [timeout] * @returns {Promise<number[]>} */ - _getFrameAncestryInfo(timeout=5000) { + _getFrameAncestryInfo(timeout = 5000) { return new Promise((resolve, reject) => { const targetWindow = window.parent; if (window === targetWindow) { diff --git a/ext/js/comm/frame-client.js b/ext/js/comm/frame-client.js index 8aa8c6d6..b07bb796 100644 --- a/ext/js/comm/frame-client.js +++ b/ext/js/comm/frame-client.js @@ -41,7 +41,7 @@ export class FrameClient { * @param {import('frame-client').SetupFrameFunction} setupFrame * @param {number} [timeout] */ - async connect(frame, targetOrigin, hostFrameId, setupFrame, timeout=10000) { + async connect(frame, targetOrigin, hostFrameId, setupFrame, timeout = 10000) { const {secret, token, frameId} = await this._connectInternal(frame, targetOrigin, hostFrameId, setupFrame, timeout); this._secret = secret; this._token = token; |