Browse Source

Disabled PUSH-registration on non-FFOS

Closes #398
master
Igor Zhukov 10 years ago
parent
commit
cf0fd19f6f
  1. 4
      app/js/services.js

4
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 * https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com> * Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE * https://github.com/zhukov/webogram/blob/master/LICENSE
@ -3534,7 +3534,7 @@ angular.module('myApp.services', [])
if (registeredDevice) { if (registeredDevice) {
return false; return false;
} }
if (navigator.push) { if (navigator.push && Config.Navigator.ffos && Config.Modes.packed) {
var req = navigator.push.register(); var req = navigator.push.register();
req.onsuccess = function(e) { req.onsuccess = function(e) {

Loading…
Cancel
Save