Commit e48215d1 authored by brockfanning's avatar brockfanning Committed by olstjos

Issue #2885412 by brockfanning: Javascript error after media upload: Cannot...

Issue #2885412 by brockfanning: Javascript error after media upload: Cannot read property 'selectedMedia' of undefined
parent 0a94b927
......@@ -128,7 +128,7 @@ Drupal.media.popups.mediaBrowser.mediaBrowserOnLoad = function (e) {
var options = e.data;
// Ensure that the iFrame is defined.
if (this.contentWindow.Drupal.media == undefined) {
if (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