fixed download part size, added index.html

This commit is contained in:
Igor Zhukov 2014-01-05 20:54:09 +04:00
parent 9762d8391f
commit 051341eb0e
2 changed files with 8 additions and 2 deletions

View File

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

6
index.html Normal file
View File

@ -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>