Display the current version in error alerts.

This commit is contained in:
Nicolas Stepien 2012-03-08 20:19:48 +01:00
parent 543caa37d4
commit e9c7e71e23
2 changed files with 2 additions and 2 deletions

View File

@ -4059,7 +4059,7 @@
}
} catch (err) {
if (notify) {
alert("4chan X error: " + err.message + "\nhttp://mayhemydg.github.com/4chan-x/#bug-report\n\n" + err.stack);
alert("4chan X (" + VERSION + ") error: " + err.message + "\nhttp://mayhemydg.github.com/4chan-x/#bug-report\n\n" + err.stack);
}
}
}

View File

@ -3349,7 +3349,7 @@ Main =
try
callback node for node in nodes
catch err
alert "4chan X error: #{err.message}\nhttp://mayhemydg.github.com/4chan-x/#bug-report\n\n#{err.stack}" if notify
alert "4chan X (#{VERSION}) error: #{err.message}\nhttp://mayhemydg.github.com/4chan-x/#bug-report\n\n#{err.stack}" if notify
return
observer: (mutations) ->
nodes = []