Skip to content

Commit

Permalink
fix: fix error on chrome extensions page
Browse files Browse the repository at this point in the history
  • Loading branch information
Каджик Гаспарян authored and Каджик Гаспарян committed Jun 24, 2024
1 parent 7c845be commit 6433e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Popup/MainHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default Vue.extend({
const tab = await getCurrentTab();
// Insert content script
if (tab.id) {
if (tab.id && !tab.url?.startsWith("chrome:")) {
await chrome.scripting.executeScript({
target: { tabId: tab.id },
files: ["/dist/content.js"],
Expand Down

0 comments on commit 6433e71

Please sign in to comment.