(msg)
| 329 | } |
| 330 | |
| 331 | function runAdvancedOptions(msg) { |
| 332 | if (msg.sessionId == mySessionId) { |
| 333 | return; |
| 334 | } |
| 335 | |
| 336 | if (Notification.permission !== "granted") { |
| 337 | Notification.requestPermission(); |
| 338 | } |
| 339 | |
| 340 | new Notification('Incoming MapChat', { |
| 341 | icon: 'favicons/apple-touch-icon-120x120.png', |
| 342 | body: msg.text ? "Incoming message: " + msg.text : "New user" |
| 343 | }); |
| 344 | } |
| 345 | |
| 346 | // This should be displayed when the app is opened from a mobile facebook app WebView (Until a better solution is found) |
| 347 | if (window.navigator.userAgent.indexOf("FBAV") > 0) { |
no outgoing calls
no test coverage detected