From c1e52857b8fcc1090211ae8651c27af7bd516fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Sun, 11 Jun 2017 09:30:41 +0200 Subject: [PATCH] Unknown method 'includes', fixes #95 --- www/badge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/badge.js b/www/badge.js index b4842811..55abfba1 100644 --- a/www/badge.js +++ b/www/badge.js @@ -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.