Commit 455ba5f9 authored by Tim Lunn's avatar Tim Lunn

Remove usage of conditional catch statements

The are no longer supported in mozjs60

Closes #35
parent e9a727fb
......@@ -111,7 +111,10 @@ const Listview = new Lang.Class({
if (returnedNumber > trackNumber)
trackNumber = returnedNumber;
} catch (e if e instanceof TypeError) {
} catch (e) {
if (!e instanceof TypeError)
throw e;
log("Tracknumber not returned");
// Don't handle the error
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment