mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-06 12:58:03 +00:00
Fix(action-confirm): check if event is defined before accessing its properties (#6063)
This commit is contained in:
@@ -59,7 +59,7 @@ Invoke the action associated with this widget
|
|||||||
ConfirmWidget.prototype.invokeAction = function(triggeringWidget,event) {
|
ConfirmWidget.prototype.invokeAction = function(triggeringWidget,event) {
|
||||||
var invokeActions = true,
|
var invokeActions = true,
|
||||||
handled = true,
|
handled = true,
|
||||||
win = event.event && event.event.view ? event.event.view : window;
|
win = event && event.event && event.event.view ? event.event.view : window;
|
||||||
if(this.prompt) {
|
if(this.prompt) {
|
||||||
invokeActions = win.confirm(this.message);
|
invokeActions = win.confirm(this.message);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user