src/js/libs/spiritual-gui.js
function(msg) {
			var prefix = "spiritual-broadcast:";
			if (msg.startsWith(prefix)) {
				return JSON.parse(msg.split(prefix)[1]);
			}
		}
function(msg) {
			var prefix = "spiritual-broadcast:";
			if (msg.startsWith(prefix)) {
				return JSON.parse(msg.split(prefix)[1]);
			}
		}
function ( msg ) { var prefix = "spiritual-broadcast:" ; if ( msg . startsWith ( prefix ) ) { return JSON . parse ( msg . split ( prefix ) [ 1 ] ) ; } }
Decode broadcast posted from xdomain and return a broadcast-like object.
@param {String} msg
@returns {object}
Decode broadcast posted from xdomain and return a broadcast - like object .