NekitCorp / chrome-extension-svelte-typescript-boilerplate

Boilerplate for Chrome Extension Svelte Typescript project
252 stars 51 forks source link

Is it normal to extension embedded to the page #16

Closed onderbakirtas closed 11 months ago

onderbakirtas commented 1 year ago

Hello, and thanks in advance for this boilerplate. It works really well, also I have acknowledged #12 for dev environment. There is something bugs me out. When extension is enabled, the popup window appears on the page. The screenshot will give you the idea.

Edit: The extension popup (the one which opens when we click) is in closed state.

image
NekitCorp commented 1 year ago

Hello, if I understand correctly, then you are concerned about the example of the content script extension.It duplicates the functionality of the popup window and embeds the same component on the page as in the popup window for an example of using content scripts.

Try to comment or delete: src/content/index.ts:

// Some svelte component on the page
// new Overlay({ target: document.body });
Before After
image image