Skip to content

Commit

Permalink
fix download buffer being twice as long as it should be
Browse files Browse the repository at this point in the history
  • Loading branch information
crashdemons committed Apr 14, 2019
1 parent 45785f4 commit 73c98a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function getJsLink(data,mt){
return '#" onclick="' + "dataOverlayStub('"+btoa(data)+"')";
}
function stobuf(str) {
var buf = new ArrayBuffer(str.length*2);
var buf = new ArrayBuffer(str.length);
var bufView = new Uint8Array(buf);
for (var i=0, strLen=str.length; i < strLen; i++) {
bufView[i] = str.charCodeAt(i);
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="jpeg_decode_exif.js"></script>
<script src="jpeg_decode.js"></script>
<script src="branding.js"></script>
<script src="frontend.js?v=1.1.2"></script>
<script src="frontend.js?v=1.1.3"></script>
<script src="/ga.js"></script>
</head>
<body>
Expand Down

0 comments on commit 73c98a1

Please sign in to comment.