How can i show an welcome page when users install my extension?
I attempted to implement the example found at PlasmoHQ's GitHub repository (https://github.com/PlasmoHQ/examples/tree/main/with-newtab) and followed the setup instructions detailed on the Plasmo framework documentation (https://docs.plasmo.com/framework/ext-pages). Although I can navigate to the page via chrome-extension://<extension-id>/tabs/test.html, the tab page does not automatically launch upon installation. Could you provide guidance on resolving this issue?
GitHub
examples/with-newtab at main · PlasmoHQ/examples
🔰 Example projects that demonstrate how to use the Plasmo Framework and integrate with popular tools - PlasmoHQ/examples
2 Replies
@frostman0081 has reached level 1. GG!
I was able to do it via the BG script like this:
chrome.runtime.onInstalled.addListener(function (details) {
console.log("onInstalled", details);
if (details.reason == "install") {
let url = chrome.runtime.getURL("tabs/index.html");
chrome.tabs.create({ url: url });
}
});