arg doc.referer doesnt work :(

pull/1/head
d11e9 9 years ago
parent 5d05f5a209
commit f1e372e870
  1. 4
      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 );
}

Loading…
Cancel
Save