Skip to content

Commit

Permalink
index: Fix stashing using browserAction
Browse files Browse the repository at this point in the history
We were passing a tab object of the wrong type to the command, so
`stash_something()` always thought there was nothing to stash.
  • Loading branch information
josh-berry committed Jul 24, 2023
1 parent 1ed0f4d commit 0522ae3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ logErrorsFrom(async () => {
return;
}
show_something(opts.browser_action_show);
await stash_something({what: opts.browser_action_stash, tab});
await stash_something({
what: opts.browser_action_stash,
tab: model.tabs.tab(tab.id!)!,
});
}),
);
}
Expand Down

0 comments on commit 0522ae3

Please sign in to comment.