Skip to content

Commit 4abf913

Browse files
committed
Separate global constants from global variables
1 parent 4695211 commit 4abf913

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

search/search.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
let fpdb = {
22
api: 'https://db-api.unstable.life',
33
images: 'https://infinity.unstable.life/images',
4-
platforms: [],
5-
sortOptions: [],
6-
list: [],
7-
pages: 0,
8-
currentPage: 1,
94
resultsPerPage: 100,
10-
displayedResults: 0,
115
thumbnailLimit: 1000,
12-
lastScrollPos: 0,
136
metaMap: {
147
title: "Title",
158
alternateTitles: "Alternate Titles",
@@ -38,7 +31,15 @@ let fpdb = {
3831
applicationPath: "Application Path",
3932
launchCommand: "Launch Command",
4033
id: "ID"
41-
}
34+
},
35+
36+
platforms: [],
37+
sortOptions: [],
38+
list: [],
39+
pages: 0,
40+
currentPage: 1,
41+
displayedResults: 0,
42+
lastScrollPos: 0
4243
};
4344

4445
fetch(fpdb.api + '/platforms').then(r => r.json()).then(json => { fpdb.platforms = json; });

0 commit comments

Comments
 (0)