Attempt to reuse the application if it's already running

This commit is contained in:
Andrei Pohilko
2022-10-28 18:28:08 +01:00
parent c5f9f71e45
commit 2e8ba39b8f
5 changed files with 28 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ $(function () {
$.getJSON("/api/scanners").fail(function (xhr) {
reportError("Failed to get list of scanners", xhr)
}).done(function (data) {
if (!data.length) {
if (!data || !data.length) {
$("#upgradeModal .btn-scan").hide()
}
})