1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-31 23:26:18 +00:00

Fix bug with event.event.target being undefined (#3683)

This commit is contained in:
Simon Huber 2019-01-14 10:41:19 +01:00 committed by Jeremy Ruston
parent bfd09133de
commit 95dbdff08a

View File

@ -30,7 +30,7 @@ Modal.prototype.display = function(title,options) {
options = options || {}; options = options || {};
this.srcDocument = options.variables && (options.variables.rootwindow === "true" || this.srcDocument = options.variables && (options.variables.rootwindow === "true" ||
options.variables.rootwindow === "yes") ? document : 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; this.srcWindow = this.srcDocument.defaultView;
var self = this, var self = this,
refreshHandler, refreshHandler,