@@ -2302,7 +2302,7 @@ $(function () {
2302
2302
}
2303
2303
2304
2304
function forceDelete ( message ) {
2305
- if ( message . includes ( "git branch -D" ) ) {
2305
+ if ( message . indexOf ( "git branch -D" ) > - 1 ) {
2306
2306
$ ( "body" ) . append ( popup ) ;
2307
2307
var popupContent = $ ( ".modal-body" , popup ) [ 0 ] ;
2308
2308
removeAllChildNodes ( popupContent ) ;
@@ -2338,7 +2338,7 @@ $(function () {
2338
2338
} ) ;
2339
2339
2340
2340
function upToDateHandler ( message ) {
2341
- if ( message . includes ( "Already up to date." ) ) {
2341
+ if ( message . indexOf ( "Already up to date." ) > - 1 ) {
2342
2342
webui . showSuccess ( message ) ;
2343
2343
}
2344
2344
}
@@ -2353,7 +2353,7 @@ $(function () {
2353
2353
}
2354
2354
webui . git ( "merge --abort" , "" , "" , suppressErrorMessage ) ;
2355
2355
2356
- if ( message . includes ( "Automatic merge went well" ) || message . includes ( "Auto-merging " ) ) {
2356
+ if ( message . indexOf ( "Automatic merge went well" ) > - 1 || message . indexOf ( "Auto-merging " ) > - 1 ) {
2357
2357
webui . git ( "merge " + refName , function ( output ) {
2358
2358
webui . showSuccess ( output ) ;
2359
2359
} ) ;
@@ -2379,7 +2379,7 @@ $(function () {
2379
2379
function suppressErrorMessage ( error ) {
2380
2380
}
2381
2381
webui . git ( "merge --abort" , "" , "" , suppressErrorMessage ) ;
2382
- if ( message . includes ( "Automatic merge went well" ) || message . includes ( "Auto-merging " ) ) {
2382
+ if ( message . indexOf ( "Automatic merge went well" ) > - 1 || message . indexOf ( "Auto-merging " ) > - 1 ) {
2383
2383
webui . git ( "merge " + refName , function ( output ) {
2384
2384
webui . showSuccess ( output ) ;
2385
2385
} ) ;
0 commit comments