fix click eg. in mail on attachment as long as we have no blueimp/expose

This commit is contained in:
ralf 2022-03-23 15:26:16 +02:00
parent 3c4f85155d
commit 2f616281e0

View File

@ -165,7 +165,7 @@ export class Et2Description extends Et2Widget(LitElement) implements et2_IDetach
// call super to get the onclick handling running
super._handleClick(_ev);
if(this.expose_view && typeof this.mime != 'undefined' && this.mime.match(this.mime_regexp, 'ig'))
if(this.expose_view && typeof this.mime != 'undefined' && this.mime_regexp && this.mime.match(this.mime_regexp, 'ig'))
{
this._init_blueimp_gallery(_ev, this.href);
}