This repository was archived by the owner on Sep 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -810,7 +810,11 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
810810 } catch ( e ) { }
811811 } ) ( ) ;
812812
813- window . console . log ( ( responseJSON && responseJSON . error ) || jqXHR . status || errorThrown . message ) ;
813+ if ( typeof window . console !== 'undefined' ) {
814+ window . console . log ( ( responseJSON && responseJSON . error ) || jqXHR . status || errorThrown . message ) ;
815+ } else {
816+ window . alert ( 'Error requesting media from ' + that . options . oembedProxy + ' to insert: ' + errorThrown + ' (response status: ' + jqXHR . status + ')' ) ;
817+ }
814818
815819 $ . proxy ( that , 'convertBadEmbed' , url ) ( ) ;
816820 }
Original file line number Diff line number Diff line change 239239 } catch ( e ) { }
240240 } ) ( ) ;
241241
242- window . console . log ( ( responseJSON && responseJSON . error ) || jqXHR . status || errorThrown . message ) ;
242+ if ( typeof window . console !== 'undefined' ) {
243+ window . console . log ( ( responseJSON && responseJSON . error ) || jqXHR . status || errorThrown . message ) ;
244+ } else {
245+ window . alert ( 'Error requesting media from ' + that . options . oembedProxy + ' to insert: ' + errorThrown + ' (response status: ' + jqXHR . status + ')' ) ;
246+ }
243247
244248 $ . proxy ( that , 'convertBadEmbed' , url ) ( ) ;
245249 }
You can’t perform that action at this time.
0 commit comments