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

Commit

Permalink
Force targetTabId to be null if not a number (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread authored Jul 19, 2020
1 parent 71b97c2 commit e12f59f
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit e12f59f

Please sign in to comment.