bookmarks/bookmarks.service.ts
Properties |
Methods |
constructor(translateService: TranslateService, userPreferencesService: UserPreferencesService, options: OptionsService)
|
||||||||||||
Parameters :
|
convertBookmarkLinkToObject |
convertBookmarkLinkToObject(title: string, url: string, icon: string)
|
Returns :
Bookmark
|
extractIconName | ||||||
extractIconName(input: string)
|
||||||
Parameters :
Returns :
string | null
|
generateRandomID |
generateRandomID()
|
Returns :
any
|
Async getBookmarks |
getBookmarks()
|
Returns :
Promise<Bookmark[]>
|
getCurrentActiveNodeIcon | ||||||
getCurrentActiveNodeIcon(document: Document)
|
||||||
Parameters :
Returns :
string
|
Async updateBookmarksInStorage | ||||||
updateBookmarksInStorage(newBookmarks: Bookmark[])
|
||||||
Parameters :
Returns :
Promise<void>
|
updatedBookmarks |
Type : Bookmark[]
|
Readonly USER_PREFERENCES_BOOKMARKS_KEY |
Type : string
|
Default value : 'bookmarks'
|