aboutsummaryrefslogtreecommitdiff
path: root/ext/js/comm
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/comm')
-rw-r--r--ext/js/comm/anki-connect.js8
-rw-r--r--ext/js/comm/cross-frame-api.js4
-rw-r--r--ext/js/comm/frame-ancestry-handler.js4
-rw-r--r--ext/js/comm/frame-client.js2
-rw-r--r--ext/js/comm/frame-offset-forwarder.js2
5 files changed, 10 insertions, 10 deletions
diff --git a/ext/js/comm/anki-connect.js b/ext/js/comm/anki-connect.js
index 8c5e2c85..4baff406 100644
--- a/ext/js/comm/anki-connect.js
+++ b/ext/js/comm/anki-connect.js
@@ -367,7 +367,7 @@ export class AnkiConnect {
const resultActions2 = /** @type {string[]} */ (this._normalizeArray(resultActions, -1, 'string', ', field scopes'));
return {
scopes: resultScopes2,
- actions: resultActions2
+ actions: resultActions2,
};
}
@@ -435,11 +435,11 @@ export class AnkiConnect {
cache: 'default',
credentials: 'omit',
headers: {
- 'Content-Type': 'application/json'
+ 'Content-Type': 'application/json',
},
redirect: 'follow',
referrerPolicy: 'no-referrer',
- body: JSON.stringify(body)
+ body: JSON.stringify(body),
});
} catch (e) {
const error = new ExtensionError('Anki connection failure');
@@ -654,7 +654,7 @@ export class AnkiConnect {
tags: tags2,
fields: fields2,
modelName,
- cards: cards2
+ cards: cards2,
};
result2.push(item2);
}
diff --git a/ext/js/comm/cross-frame-api.js b/ext/js/comm/cross-frame-api.js
index 45ea268f..619a57ad 100644
--- a/ext/js/comm/cross-frame-api.js
+++ b/ext/js/comm/cross-frame-api.js
@@ -94,7 +94,7 @@ export class CrossFrameAPIPort extends EventDispatcher {
responseTimeout,
action,
ack: false,
- timer: null
+ timer: null,
};
this._activeInvocations.set(id, invocation);
@@ -248,7 +248,7 @@ export class CrossFrameAPIPort extends EventDispatcher {
params,
[],
(data) => this._sendResult(id, data),
- () => this._sendError(id, new Error(`Unknown action: ${action}`))
+ () => this._sendError(id, new Error(`Unknown action: ${action}`)),
);
}
diff --git a/ext/js/comm/frame-ancestry-handler.js b/ext/js/comm/frame-ancestry-handler.js
index 1915f121..08c297ec 100644
--- a/ext/js/comm/frame-ancestry-handler.js
+++ b/ext/js/comm/frame-ancestry-handler.js
@@ -51,7 +51,7 @@ export class FrameAncestryHandler {
if (this._isPrepared) { return; }
window.addEventListener('message', this._onWindowMessage.bind(this), false);
this._crossFrameApi.registerHandlers([
- ['frameAncestryHandlerRequestFrameInfoResponse', this._onFrameAncestryHandlerRequestFrameInfoResponse.bind(this)]
+ ['frameAncestryHandlerRequestFrameInfoResponse', this._onFrameAncestryHandlerRequestFrameInfoResponse.bind(this)],
]);
this._isPrepared = true;
}
@@ -234,7 +234,7 @@ export class FrameAncestryHandler {
_requestFrameInfo(targetWindow, originFrameId, childFrameId, uniqueId, nonce) {
targetWindow.postMessage({
action: this._requestMessageId,
- params: {originFrameId, childFrameId, uniqueId, nonce}
+ params: {originFrameId, childFrameId, uniqueId, nonce},
}, '*');
}
diff --git a/ext/js/comm/frame-client.js b/ext/js/comm/frame-client.js
index effd3e7c..6a49fe20 100644
--- a/ext/js/comm/frame-client.js
+++ b/ext/js/comm/frame-client.js
@@ -69,7 +69,7 @@ export class FrameClient {
return {
token: /** @type {string} */ (this._token),
secret: /** @type {string} */ (this._secret),
- data
+ data,
};
}
diff --git a/ext/js/comm/frame-offset-forwarder.js b/ext/js/comm/frame-offset-forwarder.js
index 59659606..b336cddc 100644
--- a/ext/js/comm/frame-offset-forwarder.js
+++ b/ext/js/comm/frame-offset-forwarder.js
@@ -35,7 +35,7 @@ export class FrameOffsetForwarder {
prepare() {
this._frameAncestryHandler.prepare();
this._crossFrameApi.registerHandlers([
- ['frameOffsetForwarderGetChildFrameRect', this._onMessageGetChildFrameRect.bind(this)]
+ ['frameOffsetForwarderGetChildFrameRect', this._onMessageGetChildFrameRect.bind(this)],
]);
}