only run notitifications in the browser
This commit is contained in:
@@ -19,6 +19,9 @@ setModel = function(m) {
|
||||
|
||||
setupNotifications = function() {
|
||||
var statsNotification;
|
||||
if (typeof jQuery === "undefined" || jQuery === null) {
|
||||
return;
|
||||
}
|
||||
statsNotification = function(html, type) {
|
||||
if (user.get('stats.lvl') === 0) {
|
||||
return;
|
||||
|
||||
@@ -11,6 +11,8 @@ setModel = (m) ->
|
||||
setupNotifications()
|
||||
|
||||
setupNotifications = ->
|
||||
return unless jQuery? # Only run this in the browser
|
||||
|
||||
statsNotification = (html, type) ->
|
||||
#don't show notifications if user dead
|
||||
return if user.get('stats.lvl') == 0
|
||||
|
||||
Reference in New Issue
Block a user