fix(app): use lodash startsWith method instead of ECMAScript 2015 one (#648)

pull/607/head^2
Anthony Lapenna 2017-03-12 17:36:24 +01:00 committed by GitHub
parent 80d50378c5
commit d724f75016
1 changed files with 1 additions and 1 deletions

View File

@ -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: $('<div>').text(response.data).html(),