Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Force targetTabId to be null if not a number #678

Merged
merged 1 commit into from
Jul 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ext/mixed/js/comm.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ class CrossFrameAPI {
}

async invokeTab(targetTabId, targetFrameId, action, params={}) {
if (typeof targetTabId !== 'number') { targetTabId = null; }
const commPort = this._getOrCreateCommPort(targetTabId, targetFrameId);
return await commPort.invoke(action, params, this._ackTimeout, this._responseTimeout);
}
Expand Down