Commit a10ef32f authored by brockfanning's avatar brockfanning Committed by joseph.olstad

Issue #2885412 by joseph.olstad, brockfanning: Javascript error after media...

Issue #2885412 by joseph.olstad, brockfanning: Javascript error after media upload: Cannot read property 'selectedMedia' of undefined
parent c4844bca
......@@ -128,7 +128,8 @@ Drupal.media.popups.mediaBrowser.mediaBrowserOnLoad = function (e) {
var options = e.data;
// Ensure that the iFrame is defined.
if (this.contentWindow.Drupal.media == undefined) {
if (typeof this.contentWindow.Drupal.media === 'undefined' || typeof
this.contentWindow.Drupal.media.browser === 'undefined') {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment