Commit 82a038fd7ac3c69b0ce5daded938bef61b06cc5b

Daniel Flint 2014-03-27T06:16:01

Actually include the Redownload URL in the downloaded source

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/download.js b/download.js
index ae719e6..b057e73 100644
--- a/download.js
+++ b/download.js
@@ -315,7 +315,7 @@ function generateCode(){
 		codeElement.textContent = redownloadUrl + "\n" + code[type];
 		Prism.highlightElement(codeElement, true);
 		
-		$('#download-' + type + ' .download-button').href = 'data:application/octet-stream;charset=utf-8,' + encodeURIComponent(code[type]);
+		$('#download-' + type + ' .download-button').href = 'data:application/octet-stream;charset=utf-8,' + encodeURIComponent(redownloadUrl + "\n" + code[type]);
 	}
 }