How to create new tab to display contents #149
|
How this boilerplate can be used to create an extension that will use an entire tab to show contents? |
Replies: 8 comments
|
Yes, why not! Infact all the apps (popup, options, setup etc) routes can be accessed anywhere.
|
I've solved in a simple way that I think needs to be implemented as part of the extension. I've copied the popup folder and after this renamed it in Thank you for the reply |
|
This is hacky stuff! Might run into issues when scaling your extension. |
I'm trying to follow your suggestion, but not sure to understand needed steps. This is not clear for me at the moment because I see that each predefined folder have inside js, html and scss files. This is why I've opted for the hacky solution. |
Both will work fine, I mean, it depends on the suage here. If you want to overried chrome new tab then you need to use html page (complete vue app). For this you need to add If you just want to open an extension link in new tab you can just do it by adding new page to /pages directory. (can even load any page from options/ popup etc too) |
I will need to open a new tab not override the new tab default page. Into the pages folder I will need to create a vue file right?Then call it from what entry point? |
|
In short, yes! I will try to add an example here, when I have time. |
|
@realrecordzLab You can show/ load any existing app in new tab, like
If you have any questions, feel free to contact. |
@realrecordzLab You can show/ load any existing app in new tab, like
popup,setupetc But for separation of concern:popupvue appnew-tabnew-tabto vite config too. Just look at example ofsetuppage and copy it. In recent version, it will be automatically registered.chrome.runtime.getURL("src/ui/new-tab/index.html#/")If you have any questions, feel free to contact.