Sha256: 2f82f635c177eeee395578a7d821690aaa5550ecaf7bb0c8d16671600c436dd2
Contents?: true
Size: 607 Bytes
Versions: 18
Compression:
Stored size: 607 Bytes
Contents
var iOSMixin = { iOScall: function(actionType, actionParameters) { // JavaScript to send an action to iOS code var appName = 'roomcast'; var url; if(actionParameters) { var jsonString = (JSON.stringify(actionParameters)); var escapedJsonParameters = escape(jsonString); url = appName + '://' + actionType + "#" + escapedJsonParameters; } else { url = appName + '://' + actionType; } document.location.href = url; console.log('launching url: ', url); } }; module.exports = iOSMixin;
Version data entries
18 entries across 18 versions & 1 rubygems