@@ -99,8 +99,12 @@ export class BeatSaberCore {
9999
100100 if ( BeatSaber . Settings . bsaberUsername && BeatSaber . Settings ) {
101101 Spicetify . showNotification ( "Syncing bookmarks..." )
102- const keys = await BeatSaber . Api . getBookmarkKeys ( BeatSaber . Settings . bsaberUsername )
103- const storedKeys = await BeatSaber . Storage . Map . getKeys ( MapCategory . BOOKMARKED )
102+ const keys = await BeatSaber . Api . getBookmarkKeys (
103+ BeatSaber . Settings . bsaberUsername
104+ )
105+ const storedKeys = await BeatSaber . Storage . Map . getKeys (
106+ MapCategory . BOOKMARKED
107+ )
104108 const missingPages = new Set < number > ( )
105109
106110 keys . forEach ( ( key , index ) => {
@@ -111,16 +115,24 @@ export class BeatSaberCore {
111115
112116 for ( const page of missingPages ) {
113117 Spicetify . showNotification ( `Getting bookmarks page ${ page } ...` )
114- const bookmarks = await BeatSaber . Api . getBookmarks ( BeatSaber . Settings . bsaberUsername , page )
115- await BeatSaber . Storage . Map . put ( MapCategory . BOOKMARKED , ...bookmarks )
118+ const bookmarks = await BeatSaber . Api . getBookmarks (
119+ BeatSaber . Settings . bsaberUsername ,
120+ page
121+ )
122+ await BeatSaber . Storage . Map . put (
123+ MapCategory . BOOKMARKED ,
124+ ...bookmarks
125+ )
116126 }
117127 }
118128
119129 Spicetify . showNotification ( "Syncing downloads..." )
120130 const downloads = await BeatSaber . Api . getDownloads ( )
121131 await BeatSaber . Storage . Map . put ( MapCategory . DOWNLOADED , ...downloads )
122132
123- Spicetify . showNotification ( `Added ${ bookmarkCount || "no" } new bookmarks` )
133+ Spicetify . showNotification (
134+ `Added ${ bookmarkCount || "no" } new bookmarks`
135+ )
124136 }
125137
126138 public initializeSubApp ( window : Window ) {
0 commit comments