summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-14 13:42:00 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-14 13:42:00 +0100
commit0e8c6da864f3257e631659dc8834cb2c18854e37 (patch)
tree59245f741902dfba3c22400b0f914d4706554fa8 /program/js
parent398238abf23ed74568c77d355c55a405fde730fe (diff)
Fix "obj.href is undefined" error
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
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;
}