Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 42c89e6

Browse files
committed
send activeTabId to browserAction
auditors: @bbondy
1 parent 8b9ff8f commit 42c89e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/renderer/components/browserActionButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BrowserActionButton extends ImmutableComponent {
2525
offsetX: e.nativeEvent.offsetX,
2626
offsetY: e.nativeEvent.offsetY
2727
}
28-
ipc.send('chrome-browser-action-clicked', id, this.activeTabId, title, props)
28+
ipc.send('chrome-browser-action-clicked', id, this.props.tabId, title, props)
2929
}
3030

3131
render () {

js/components/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ class Main extends ImmutableComponent {
703703
<BrowserActionButton
704704
browserAction={browserAction}
705705
extensionId={id}
706+
tabId={this.activeTabId}
706707
popupWindowSrc={this.props.windowState.getIn(['popupWindowDetail', 'src'])} />
707708
).values()
708709
buttons = Array.from(buttons)

0 commit comments

Comments
 (0)