From cf0fd19f6f6f710217c3f701b47c1f131027809e Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 31 Jul 2014 19:20:23 +0100 Subject: [PATCH] Disabled PUSH-registration on non-FFOS Closes #398 --- app/js/services.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/services.js b/app/js/services.js index afcac486..bdc63ea9 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -1,5 +1,5 @@ /*! - * Webogram v0.2.5 - messaging web application for MTProto + * Webogram v0.2.8 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov * https://github.com/zhukov/webogram/blob/master/LICENSE @@ -3534,7 +3534,7 @@ angular.module('myApp.services', []) if (registeredDevice) { return false; } - if (navigator.push) { + if (navigator.push && Config.Navigator.ffos && Config.Modes.packed) { var req = navigator.push.register(); req.onsuccess = function(e) {