@@ -2302,7 +2302,7 @@ $(function () {
23022302 }
23032303
23042304 function forceDelete ( message ) {
2305- if ( message . includes ( "git branch -D" ) ) {
2305+ if ( message . indexOf ( "git branch -D" ) > - 1 ) {
23062306 $ ( "body" ) . append ( popup ) ;
23072307 var popupContent = $ ( ".modal-body" , popup ) [ 0 ] ;
23082308 removeAllChildNodes ( popupContent ) ;
@@ -2338,7 +2338,7 @@ $(function () {
23382338 } ) ;
23392339
23402340 function upToDateHandler ( message ) {
2341- if ( message . includes ( "Already up to date." ) ) {
2341+ if ( message . indexOf ( "Already up to date." ) > - 1 ) {
23422342 webui . showSuccess ( message ) ;
23432343 }
23442344 }
@@ -2353,7 +2353,7 @@ $(function () {
23532353 }
23542354 webui . git ( "merge --abort" , "" , "" , suppressErrorMessage ) ;
23552355
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 ) {
23572357 webui . git ( "merge " + refName , function ( output ) {
23582358 webui . showSuccess ( output ) ;
23592359 } ) ;
@@ -2379,7 +2379,7 @@ $(function () {
23792379 function suppressErrorMessage ( error ) {
23802380 }
23812381 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 ) {
23832383 webui . git ( "merge " + refName , function ( output ) {
23842384 webui . showSuccess ( output ) ;
23852385 } ) ;
0 commit comments