Просмотр исходного кода

add null check on notifications handler

Henry Oswald 10 лет назад
Родитель
Сommit
51df3825e5

+ 1 - 1
services/web/app/coffee/Features/Notifications/NotificationsHandler.coffee

@@ -5,7 +5,7 @@ logger = require("logger-sharelatex")
 oneSecond = 1000
 
 makeRequest = (opts, callback)->
-	if !settings.apis.notifications.url?
+	if !settings.apis.notifications?.url?
 		return callback()
 	else
 		request(opts, callback)