Skip to content

Commit

Permalink
Add onboarding website page
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitrino committed Jul 24, 2024
1 parent 8e78c1f commit 3834979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ reloadOnUpdate("pages/content/style.scss");
console.log("background loaded");

chrome.runtime.onInstalled.addListener(function (object) {
let optionsUrl = chrome.runtime.getURL("src/pages/options/index.html");
const onboardingUrl = "https://easysubs.cc/en/onboarding/";

if (object.reason === chrome.runtime.OnInstalledReason.INSTALL) {
chrome.tabs.create({ url: optionsUrl }, function (tab) {
chrome.tabs.create({ url: onboardingUrl }, function (tab) {
console.log("New tab launched with options page");
});
}
Expand Down

0 comments on commit 3834979

Please sign in to comment.