From 0e8c6da864f3257e631659dc8834cb2c18854e37 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 14 Nov 2012 13:42:00 +0100 Subject: Fix "obj.href is undefined" error --- program/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/js/app.js b/program/js/app.js index 2a170b258..1b4383480 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -508,7 +508,7 @@ function rcube_webmail() return false; // let the browser handle this click (shift/ctrl usually opens the link in a new window/tab) - if ((obj && (obj.href.indexOf(location.href) < 0)) && rcube_event.get_modifier(event)) { + if ((obj && obj.href && obj.href.indexOf(location.href) < 0) && rcube_event.get_modifier(event)) { return true; } -- cgit v1.2.3