Skip to content

Commit

Permalink
Merge pull request #1213 from romancores/fix-error
Browse files Browse the repository at this point in the history
fix: fix error on chrome extensions page
  • Loading branch information
mymindstorm authored Jun 26, 2024
2 parents a5ef095 + 6433e71 commit 17a3840
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 @@ -160,7 +160,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 17a3840

Please sign in to comment.