diff options
| author | tim b <timb@camcompu.home> | 2010-06-19 03:45:34 -0700 |
|---|---|---|
| committer | tim b <timb@camcompu.home> | 2010-06-19 03:45:34 -0700 |
| commit | 56cebe67dbb00a970e711570091524976ef69d98 (patch) | |
| tree | 99559e66268e4949f5e261ff14a4db762160a332 /static | |
| parent | c937f0335938106de28b7a001ac094ffafbf62d3 (diff) | |
fix youtube detection logic
Diffstat (limited to 'static')
| -rw-r--r-- | static/js/pichat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 031ac29..a51591e 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -234,7 +234,7 @@ function getUriType(uri){ if (PicRegex.test(uri.file.toLowerCase())) return "image"; - if (parseDomain(uri.host) == "youtube.com" && 'v' in uri.queryKey || uri.anchor.indexOf('v') != -1) + if (parseDomain(uri.host) == "youtube.com" && ('v' in uri.queryKey || uri.anchor.indexOf('v') != -1)) return "youtube"; return "link"; |
