Commit f1e372e8 authored by d11e9's avatar d11e9

arg doc.referer doesnt work :(

parent 5d05f5a2
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment