Skip to content

Commit

Permalink
copy even if autofill fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mymindstorm committed Jun 26, 2024
1 parent 8d9be09 commit 44748ff
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/Popup/EntryComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,12 @@ export default Vue.extend({
if (this.$store.state.menu.useAutofill) {
await insertContentScript();
const tab = await getCurrentTab();
if (!tab || !tab.id) {
return;
if (tab && tab.id) {
chrome.tabs.sendMessage(tab.id, {
action: "pastecode",
code: entry.code,
});
}
chrome.tabs.sendMessage(tab.id, {
action: "pastecode",
code: entry.code,
});
}
const lastActiveElement = document.activeElement as HTMLElement;
Expand Down

0 comments on commit 44748ff

Please sign in to comment.