Add nightmode undefined check for query graphs (#2021)

Affects issues:
- Fixed #2020
This commit is contained in:
Antti Koponen 2021-07-23 07:40:27 +03:00 committed by GitHub
parent 386e45dea6
commit 0ee1e40e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,7 +350,7 @@ function displayResults(json) {
order: [[5, "desc"]]
});
if (nightmode) {
if ('undefined' !== typeof nightmode && nightmode == true) {
document.querySelector('.table').classList.add('table-dark');
}
@ -508,4 +508,4 @@ function displayDataResultScreen(resultCount, view) {
</div>
</div>
</div>`;
}
}