diff --git a/src/drivers/bookmarklet/driver.js b/src/drivers/bookmarklet/driver.js index a787640d6..d6769a8c5 100644 --- a/src/drivers/bookmarklet/driver.js +++ b/src/drivers/bookmarklet/driver.js @@ -71,7 +71,7 @@ name = line.substring(0, line.indexOf(': ')); value = line.substring(line.indexOf(': ') + 2, line.length - 1); - responseHeaders[name] = value; + responseHeaders[name.toLowerCase()] = value; } }); @@ -123,7 +123,7 @@ category = w.categories[w.apps[app].cats[i]]; - html += '' + category + ''; + html += '' + category + ''; } html += ''; @@ -146,7 +146,7 @@ window.open(args.url); }, - slugify = function(string) { + slugify: function(string) { return string.toLowerCase().replace(/ /g, '-').replace(/[^\w-]/g, ''); } };