Skip to content

Commit

Permalink
Always automatically open on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Dec 15, 2023
1 parent 082404a commit e7001f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@
"webExt": {
"sourceDir": "distribution",
"run": {
"startUrl": [
"chrome://extensions/?options=aknaajkpkdhfnbdfopjlkpkmajdckgfk"
],
"target": [
"chromium"
]
Expand Down
5 changes: 3 additions & 2 deletions source/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ chrome.action.onClicked.addListener(async () => {

matchOptions();

// DEVELOPMENT MODE: uncomment this so the tab will reopen on extension reload
// chrome.tabs.create({url:'chrome-extension://aknaajkpkdhfnbdfopjlkpkmajdckgfk/index.html?type=tab'})
if (process.env.NODE_ENV === 'development') {
chrome.tabs.create({url: `${appUrl}?type=tab`});
}

0 comments on commit e7001f7

Please sign in to comment.