MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / runAdvancedOptions

Function runAdvancedOptions

map-chat/javascript/map.js:331–344  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

329}
330
331function 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)
347if (window.navigator.userAgent.indexOf("FBAV") > 0) {

Callers 2

displayChatMessageOnMapFunction · 0.85
displayMessageOnMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected