diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-18 13:34:31 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-18 13:34:31 +0300 |
commit | 73147c0d2b0009c044bce28719398b5faae818c7 (patch) | |
tree | 4fea374e183fb06e359a45b2988cf33b86d2229d /js | |
parent | 21aa7a5db6e9510fbd10c023fd0c0f52e10f84a0 (diff) |
Better handling of N/A database size
Diffstat (limited to 'js')
-rw-r--r-- | js/script.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/script.js b/js/script.js index 2218460..2bc64e1 100644 --- a/js/script.js +++ b/js/script.js @@ -235,7 +235,11 @@ $('#databaseType').text(' ' + database.type); $('#databaseVersion').text(' ' + database.version); - $('#dataBaseSize').text(' ' + bytesToSize(database.size)); + if (database.size === 'N/A') { + $('#dataBaseSize').text(' ' + database.size); + } else { + $('#dataBaseSize').text(' ' + bytesToSize(database.size)); + } } function resizeSystemCharts () { |