Browse Source

fixed download part size, added index.html

master
Igor Zhukov 11 years ago
parent
commit
051341eb0e
  1. 4
      app/js/lib/mtproto.js
  2. 6
      index.html

4
app/js/lib/mtproto.js

@ -2421,8 +2421,8 @@ factory('MtpApiFileManager', function (MtpApiManager, $q, $window) {
cacheFileWriter = fileWriter; cacheFileWriter = fileWriter;
// var limit = size > 102400 ? 65536 : 4096; // var limit = size > 102400 ? 65536 : 4096;
// var limit = size > 30400 ? 524288 : 4096; var limit = size > 30400 ? 524288 : 4096;
var limit = size > 30400 ? 20480 : 4096; // var limit = size > 30400 ? 20480 : 4096;
var writeFilePromise = $q.when(), var writeFilePromise = $q.when(),
writeFileDeferred; writeFileDeferred;
for (var offset = 0; offset < size; offset += limit) { for (var offset = 0; offset < size; offset += limit) {

6
index.html

@ -0,0 +1,6 @@
<!doctype html>
<html lang="en" ng-app="myApp" ng-csp="">
<head>
<meta http-equiv="refresh" content="1; url=app/">
</head>
</html>
Loading…
Cancel
Save