Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The links.original value returned from imgur API is on i.imgur.com do…

…main now rather than imgur.com. This change adjusts the hash value extraction to make the demo app work properly again.
  • Loading branch information...
commit 5273259473a5515b565e750d93a2e5a54bebac5b 1 parent fe2533d
@bcantoni bcantoni authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  main.js
View
2  main.js
@@ -229,7 +229,7 @@ function upload() {
try {
var links = JSON.parse(xhr.responseText).upload.links;
var hash = links.original;
- hash = hash.replace("http://imgur.com/", "");
+ hash = hash.replace("http://i.imgur.com/", "");
hash = hash.replace(".png", "");
document.location.hash = "#" + hash;
initViewer(hash);
Please sign in to comment.
Something went wrong with that request. Please try again.