File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -800,16 +800,17 @@ if (binaryInfo != null && binaryInfo.length > 0) {
800800
801801 for ( let key in modInfoObj ) {
802802 if ( modInfoObj [ key ] ) {
803- let value = modInfoObj [ key ]
804- if ( isSurgeiOS && key == 'system' ) {
805- value = value . toLowerCase ( ) . includes ( 'mac' ) ? 'mac' : 'ios'
803+ let value = modInfoObj [ key ] , delsystem = false
804+ if ( key == 'system' && isSurgeiOS ) {
805+ value = value . toLowerCase ( )
806+ value = value . includes ( 'mac' ) ? ( value . includes ( 'ios' ) ? ( delsystem = true , 'mac' ) : 'mac' ) : 'ios'
806807 } else if ( isLooniOS && key == 'category' ) {
807808 key = 'keyword'
808809 } else if ( ! isLooniOS && key == 'keyword' ) {
809810 key = 'category'
810811 }
811812 let info = ! isStashiOS ? '#!' + key + '=' + value : key + ': |-\n ' + value
812- modInfo . push ( info )
813+ ! delsystem && modInfo . push ( info )
813814 }
814815 }
815816
You can’t perform that action at this time.
0 commit comments