mirror of
https://github.com/portainer/portainer.git
synced 2025-07-28 01:39:39 +02:00
fix(app): use lodash startsWith method instead of ECMAScript 2015 one (#648)
This commit is contained in:
parent
80d50378c5
commit
d724f75016
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ angular.module('portainer', [
|
||||||
return {
|
return {
|
||||||
'response': function(response) {
|
'response': function(response) {
|
||||||
if (typeof(response.data) === 'string' &&
|
if (typeof(response.data) === 'string' &&
|
||||||
(response.data.startsWith('Conflict.') || response.data.startsWith('conflict:'))) {
|
(_.startsWith(response.data, 'Conflict.') || _.startsWith(response.data, 'conflict:'))) {
|
||||||
$.gritter.add({
|
$.gritter.add({
|
||||||
title: 'Error',
|
title: 'Error',
|
||||||
text: $('<div>').text(response.data).html(),
|
text: $('<div>').text(response.data).html(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue