diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-11-14 16:18:27 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-11-14 16:18:27 +0100 |
commit | 0f6e9f0bf692ae87be460eb3553e3f55349d725b (patch) | |
tree | 025d65693aaf7bc78701af071db204fe348f492f /program/js/app.js | |
parent | 52d0d949104e6b43d8daa39dad64b20cc003440c (diff) |
Avoid errors with non-string objects
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 1b4383480..1891977a7 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 && obj.href.indexOf(location.href) < 0) && rcube_event.get_modifier(event)) { + if ((obj && obj.href && String(obj.href).indexOf(location.href) < 0) && rcube_event.get_modifier(event)) { return true; } |