mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix exception for not found image / null passed
This commit is contained in:
parent
486303cde5
commit
1f599abaf6
@ -141,7 +141,7 @@ egw.extend('images', egw.MODULE_GLOBAL, function() {
|
|||||||
image_element: function(_url, _alt)
|
image_element: function(_url, _alt)
|
||||||
{
|
{
|
||||||
var icon;
|
var icon;
|
||||||
if (_url.match(/\.svg$/))
|
if (typeof _url == 'string' && _url.match(/\.svg$/))
|
||||||
{
|
{
|
||||||
icon = document.createElement('object');
|
icon = document.createElement('object');
|
||||||
icon.type = 'image/svg+xml';
|
icon.type = 'image/svg+xml';
|
||||||
|
Loading…
Reference in New Issue
Block a user