projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8397d90
)
user-agent fix
author
Darren
<darren@darrenwhitlen.com>
Sun, 4 Sep 2011 12:34:04 +0000
(13:34 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Sun, 4 Sep 2011 12:34:04 +0000
(13:34 +0100)
node/app.js
patch
|
blob
|
blame
|
history
diff --git
a/node/app.js
b/node/app.js
index 6ef776b61d98ce92bbe19df1ed16f330f6212587..670e110e256f89132852e39429e245cd2155ca4d 100644
(file)
--- a/
node/app.js
+++ b/
node/app.js
@@
-486,7
+486,7
@@
this.httpHandler = function (request, response) {
kiwi.fileServer.serve(request, response);
});
} else if (uri.pathname === '/' || uri_parts[1] === 'client') {
- useragent = (
request.headers
) ? request.headers['user-agent'] : '';
+ useragent = (
typeof request.headers === 'string'
) ? request.headers['user-agent'] : '';
if (useragent.match(/android/i) !== -1) {
agent = 'android';
touchscreen = true;