Permalink
Browse files

really get the host

  • Loading branch information...
1 parent 04cc68d commit eb7dd9cd14a8315fefabcc511eb1238e0ab151da @darkhelmet darkhelmet committed with Nov 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 darkhelmet/darkhelmet.absolute.xml
@@ -16,7 +16,7 @@
//include css to xpath convert function
url = url.split('?')[0];
var protocol = url.split('://')[0];
- var host = url.split('//')[1].gsub('/', '');
+ var host = url.split('//')[1].split('/')[0];
var urlPath = url.split(host)[1];
if (/^http/.test(path)) {
response.object = { url: path };

0 comments on commit eb7dd9c

Please sign in to comment.