-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.js
52 lines (47 loc) · 1010 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'use strict';
if (typeof my_utils === 'undefined') include('utils.js');
let isRadioStreamParser = false;
const loadAsync = false; // window.GetProperty('Load Biography Asynchronously', true); // changed to false: issue on loading fth with many panels
async function readFiles(files) {
for (const file of files) {
if (window.ID) { // fix pss issue
await include(my_utils.getScriptPath + file);
}
}
}
const files = [
'helpers.js',
'properties.js',
'settings.js',
'interface.js',
'language.js',
'panel.js',
'server.js',
'allmusic.js',
'lastfm.js',
'wikipedia.js',
'names.js',
'scrollbar.js',
'buttons.js',
'menu.js',
'text.js',
'lyrics.js',
'tagger.js',
'resize.js',
'library.js',
'images.js',
'filmstrip.js',
'timers.js',
'popupbox.js',
'initialise.js',
'callbacks.js'
];
if (loadAsync) {
readFiles(files).then(() => {
if (!window.ID) return; // fix pss issue
on_size();
window.Repaint();
});
} else {
files.forEach(v => include(my_utils.getScriptPath + v));
}