Fix catch syntax for older gnome-shell versions

This commit is contained in:
Charles Gagnon
2020-04-24 09:54:05 -04:00
parent 6fa3c813ab
commit 00ef45165e

View File

@@ -941,7 +941,7 @@ function checkIfCommandExists(app) {
let out = GLib.spawn_command_line_sync(cmd);
// out contains 1: stdout, 2: stderr, 3: exit code
answer = out[3] == 0;
} catch {
} catch (ex) {
answer = false;
}