From 90d001586f2b55e13fb51b310e2d3167ca038bf9 Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sat, 25 Feb 2017 13:49:10 +1100 Subject: [PATCH] Fix bookmarklet driver --- src/drivers/bookmarklet/driver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, ''); } };