Skip to content

Commit

Permalink
Add some changes to support global and local setting for newTab
Browse files Browse the repository at this point in the history
  • Loading branch information
deepjyoti30 committed Jul 1, 2022
1 parent c6842d0 commit 89cf15a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
]
}
],
"linkInNewTab": true,
"title": "startpage",
"searchEngine":"DuckDuckGo",
"user": "Deepjyoti",
Expand Down
4 changes: 2 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ function createSqr(sqrData, index, globalNewTabEnabled) {
isNewTab = globalNewTabEnabled
newTabValue = element["newTab"]

if (newTab != undefined) {
isNewTab = newTab
if (newTabValue != undefined) {
isNewTab = newTabValue
}

a = document.createElement("a")
Expand Down

0 comments on commit 89cf15a

Please sign in to comment.