File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -79,20 +79,20 @@ define([
79
79
if ( msg . content [ 'name' ] == 'stderr' ) {
80
80
reject ( msg ) ;
81
81
} else {
82
- if ( msg . content [ 'text' ] ) {
83
- result = String ( msg . content [ 'text' ] ) ;
84
- type = 'text' ;
85
- } else if ( msg . content . data ) {
86
- if ( msg . content . data [ 'text/plain' ] ) {
87
- result = String ( msg . content . data [ 'text/plain' ] ) ;
88
- type = 'text/plain' ;
89
- } else if ( msg . content . data [ 'text/html' ] ) {
82
+ if ( msg . content . data ) {
83
+ if ( msg . content . data [ 'text/html' ] ) {
90
84
result = String ( msg . content . data [ 'text/html' ] ) ;
91
85
type = 'text/html' ;
92
86
} else if ( msg . content . data [ 'image/png' ] ) {
93
87
result = String ( msg . content . data [ 'image/png' ] ) ;
94
88
type = 'image/png' ;
89
+ } else if ( msg . content . data [ 'text/plain' ] ) {
90
+ result = String ( msg . content . data [ 'text/plain' ] ) ;
91
+ type = 'text/plain' ;
95
92
}
93
+ } else if ( msg . content [ 'text' ] ) {
94
+ result = String ( msg . content [ 'text' ] ) ;
95
+ type = 'text' ;
96
96
}
97
97
resolve ( { result : result , type : type , msg : msg } ) ;
98
98
}
You can’t perform that action at this time.
0 commit comments