Skip to content

Commit

Permalink
Fix bug with event.event.target being undefined (TiddlyWiki#3683)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Huber authored and JesseWeinstein committed Jan 17, 2019
1 parent 566373e commit d45e3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/utils/dom/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Modal.prototype.display = function(title,options) {
options = options || {};
this.srcDocument = options.variables && (options.variables.rootwindow === "true" ||
options.variables.rootwindow === "yes") ? document :
(options.event.event ? options.event.event.target.ownerDocument : document);
(options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document);
this.srcWindow = this.srcDocument.defaultView;
var self = this,
refreshHandler,
Expand Down

0 comments on commit d45e3a1

Please sign in to comment.