Skip to content

Commit

Permalink
Unknown method 'includes', fixes katzer#95
Browse files Browse the repository at this point in the history
  • Loading branch information
katzer committed Jun 11, 2017
1 parent 6023a41 commit c1e5285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
var exec = require('cordova/exec'),
channel = require('cordova/channel'),
ua = navigator.userAgent.toLowerCase(),
isIOS = ua.includes('ipad') || ua.includes('iphone');
isIOS = ua.indexOf('ipad') > -1 || ua.indexOf('iphone') > -1;

/**
* Clears the badge number.
Expand Down

0 comments on commit c1e5285

Please sign in to comment.