diff options
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 323e05b..44db3cf 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -95,12 +95,12 @@ function annoyingCaps(text){ return chunks.join(" ") } -var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; + function imgClickHandler() { // Ugly hack. Don't open new links in chat, only in logs. // Ugly hack mkII: ensure middle-click opens images in new tab // c.f. http://code.google.com/p/chromium/issues/detail?id=255 - if (is_chrome && event.button != 0) { + if ($.browser.webkit && event.button != 0) { event.stopPropagation(); } else { return $('#chatrap').length == 0; |
