summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrockfanning2017-06-13 18:23:43 (GMT)
committerolstjos2017-06-13 18:23:43 (GMT)
commite48215d10461c97568a4662932a38e762f92378b (patch)
treed9dca30e1164b277366c095e0ca996e96bbce507
parent0a94b9273c3e99f83469dca928c67fb1d472b191 (diff)
Issue #2885412 by brockfanning: Javascript error after media upload: Cannot read property 'selectedMedia' of undefined
-rw-r--r--js/media.popups.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/media.popups.js b/js/media.popups.js
index 49f56c0..974e1b6 100644
--- a/js/media.popups.js
+++ b/js/media.popups.js
@@ -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;
}