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