Skip to content

Commit

Permalink
really get the host
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhelmet authored and spullara committed Dec 29, 2009
1 parent 04cc68d commit eb7dd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darkhelmet/darkhelmet.absolute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit eb7dd9c

Please sign in to comment.