Add bookmarks internal page
This commit is contained in:
@@ -16,6 +16,7 @@ pub(crate) fn tab_title(url: &UrlText) -> String {
|
||||
fn internal_page_title(url: &str) -> Option<&'static str> {
|
||||
match url {
|
||||
"ely://new-tab" => Some("New Tab"),
|
||||
"ely://bookmarks" => Some("Bookmarks"),
|
||||
"ely://downloads" => Some("Downloads"),
|
||||
"ely://history" => Some("History"),
|
||||
"ely://archive" => Some("Archived Tabs"),
|
||||
@@ -84,6 +85,10 @@ pub(crate) fn downloads_url() -> Result<UrlText, CoreError> {
|
||||
internal_page_url("ely://downloads")
|
||||
}
|
||||
|
||||
pub(crate) fn bookmarks_url() -> Result<UrlText, CoreError> {
|
||||
internal_page_url("ely://bookmarks")
|
||||
}
|
||||
|
||||
pub(crate) fn history_url() -> Result<UrlText, CoreError> {
|
||||
internal_page_url("ely://history")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user