From f1e372e87041f248a08c2bb071471f091af8ca9e Mon Sep 17 00:00:00 2001 From: d11e9 Date: Fri, 9 Oct 2015 14:40:00 +0100 Subject: [PATCH] arg doc.referer doesnt work :( --- index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.html b/index.html index 0ec1ba98a6..fd8e6035c1 100644 --- a/index.html +++ b/index.html @@ -106,11 +106,9 @@ THE SOFTWARE. if (location_hash_params.indexOf('gist') !== -1 && location_hash_params.length >= 2) { var index = location_hash_params.indexOf('gist'); var gistId; - var key = location_hash_params[1]; + var key = location_hash_params[index+1]; if (key === '') { gistId = getGistId( prompt("Enter the gist url or id you'd like to load.") ); - } else if (key === "referer") { - gistId = getGistId( document.referer ); } else { gistId = getGistId( key ); }