Blame view

resources/js/roller/PlayerJsCommon.js 384 Bytes
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  (function () {
      var PlayerJsCommon = window.PlayerJsCommon = function () {};
  
      PlayerJsCommon.getPlayerJsMessage = function (e) {
          var message;
  
          try {
              message = JSON.parse(e.data);
          } catch (err) {
              return;
          }
  
          if (message.context !== 'player.js') {
              return;
          }
  
          return message;
      };
  }());