Sha256: ed0b0c6d0eb7ecd286f7aa1d039f4b292076ac990ce42880f8bb79394379e2d8
Contents?: true
Size: 573 Bytes
Versions: 12
Compression:
Stored size: 573 Bytes
Contents
function isOnDevice(){ return navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/); } function NativeAccess() { this.base_access = isOnDevice() ? cordova : new MockedCordova(); } function MockedCordova() { } NativeAccess.prototype.send_sms = function (receivers, message_content, success_callback, error_callback, context) { this.base_access.exec(function (result) { success_callback.call(context, result); }, function (err) { error_callback.call(context); }, "MoodeSMS", "send_sms", [receivers, message_content]); };
Version data entries
12 entries across 12 versions & 2 rubygems