From 6b950d0596516f79e7a6cb709dd241839f7aaf95 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 20 Mar 2015 19:42:59 -0400 Subject: [PATCH] fix endsWith if check --- public/src/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/src/utils.js b/public/src/utils.js index b48b4345ae..930e03501f 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -365,7 +365,9 @@ } return i < 0; }; + } + if (typeof String.prototype.endsWith != 'function') { String.prototype.endsWith = function(suffix) { if (this.length < suffix.length) { return false;