This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 975
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #2106 - pulled out setting values into an enum - position moved to below "Brave starts with" (in preferences.js) - resolved circular dependency issue in appUrlUtil which broke app - made a newtab option called BLANK and renamed value TEMP. We can change back when ready to go live - defaultUrl removed from main.js (since it gets defaulted in windowStore.js) - removed defaultUrl from window.js (since windowStore.js also handles this) - put about pages into config; updated contextMenus.js to use config constants - adding missing "base" element to searchProviders that had it missing (mdn, github, startpage, etc) - updated defaultUrl logic in appUrlUtil.js to default unknown values to about:blank - windowStore.js now uses new defaultUrl method (from appUrlUtil) instead of config.defaultUrl Auditors: @kingscott @cezaraugusto
- Loading branch information
Showing
17 changed files
with
96 additions
and
95 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
const startsWithOption = { | ||
WINDOWS_TABS_FROM_LAST_TIME: 'lastTime', | ||
HOMEPAGE: 'homePage', | ||
NEW_TAB_PAGE: 'newTabPage' | ||
} | ||
|
||
const newTabMode = { | ||
BLANK: 'blank', | ||
NEW_TAB_PAGE: 'newTabPage', | ||
HOMEPAGE: 'homePage', | ||
DEFAULT_SEARCH_ENGINE: 'defaultSearchEngine' | ||
} | ||
|
||
const bookmarksToolbarMode = { | ||
TEXT_ONLY: 'textOnly', | ||
TEXT_AND_FAVICONS: 'textAndFavicons', | ||
FAVICONS_ONLY: 'faviconsOnly' | ||
} | ||
|
||
module.exports = { | ||
startsWithOption, | ||
newTabMode, | ||
bookmarksToolbarMode | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.