File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,20 +79,20 @@ define([
7979 if ( msg . content [ 'name' ] == 'stderr' ) {
8080 reject ( msg ) ;
8181 } 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' ] ) {
9084 result = String ( msg . content . data [ 'text/html' ] ) ;
9185 type = 'text/html' ;
9286 } else if ( msg . content . data [ 'image/png' ] ) {
9387 result = String ( msg . content . data [ 'image/png' ] ) ;
9488 type = 'image/png' ;
89+ } else if ( msg . content . data [ 'text/plain' ] ) {
90+ result = String ( msg . content . data [ 'text/plain' ] ) ;
91+ type = 'text/plain' ;
9592 }
93+ } else if ( msg . content [ 'text' ] ) {
94+ result = String ( msg . content [ 'text' ] ) ;
95+ type = 'text' ;
9696 }
9797 resolve ( { result : result , type : type , msg : msg } ) ;
9898 }
You can’t perform that action at this time.
0 commit comments