Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-08-08 11:24:13 +02:00
parent 7a78e0c641
commit 91737b591e
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 6 additions and 3 deletions

View File

@ -181,9 +181,12 @@
* Sort initially as setup of sidebar for QuickAccess
*/
setInitialQuickaccessSettings: function () {
var quickAccesKey = this.$quickAccessListKey;
var list = document.getElementById(quickAccesKey).getElementsByTagName('li');
this.QuickSort(list, 0, list.length - 1);
var quickAccessKey = this.$quickAccessListKey;
var quickAccessMenu = document.getElementById(quickAccessKey)
if (quickAccessMenu) {
var list = quickAccessMenu.getElementsByTagName('li');
this.QuickSort(list, 0, list.length - 1);
}
},
/**