Bookmark from TitleBar
Summary: Add action to bookmark current location Reviewed By: passy Differential Revision: D17419666 fbshipit-source-id: 69e845e802260c150ae2f17649cea05bea1ae4ec
This commit is contained in:
committed by
Facebook Github Bot
parent
bd1fc342c8
commit
108c49f572
@@ -147,8 +147,7 @@ export default class extends FlipperPlugin<State, any, PersistedState> {
|
||||
addBookmark = (bookmark: Bookmark) => {
|
||||
const newBookmark = {
|
||||
uri: bookmark.uri,
|
||||
commonName:
|
||||
bookmark.commonName.length > 0 ? bookmark.commonName : bookmark.uri,
|
||||
commonName: bookmark.commonName,
|
||||
};
|
||||
|
||||
writeBookmarkToDB(newBookmark);
|
||||
|
||||
@@ -32,7 +32,7 @@ export type NavigationEvent = {
|
||||
|
||||
export type Bookmark = {
|
||||
uri: URI;
|
||||
commonName: string;
|
||||
commonName: string | null;
|
||||
};
|
||||
|
||||
export type AutoCompleteProvider = {
|
||||
|
||||
Reference in New Issue
Block a user