From d724f7501608f985fcf600f26f5573187b54e736 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Sun, 12 Mar 2017 17:36:24 +0100 Subject: [PATCH] fix(app): use lodash startsWith method instead of ECMAScript 2015 one (#648) --- app/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.js b/app/app.js index c30203af3..a78d2f18e 100644 --- a/app/app.js +++ b/app/app.js @@ -518,7 +518,7 @@ angular.module('portainer', [ return { 'response': function(response) { if (typeof(response.data) === 'string' && - (response.data.startsWith('Conflict.') || response.data.startsWith('conflict:'))) { + (_.startsWith(response.data, 'Conflict.') || _.startsWith(response.data, 'conflict:'))) { $.gritter.add({ title: 'Error', text: $('
').text(response.data).html(),