diff options
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/backend.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 03c0b5fe..79023ac9 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -349,12 +349,18 @@ export class Backend { _onWebExtensionEventWrapper(handler) { return /** @type {T} */ ((...args) => { if (this._isPrepared) { + // This is using SafeAny to just forward the parameters + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument handler(...args); return; } this._prepareCompletePromise.then( - () => { handler(...args); }, + () => { + // This is using SafeAny to just forward the parameters + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument + handler(...args); + }, () => {} // NOP ); }); |