mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-07 14:17:51 +02:00
increase limit before switching to stream mode
This commit is contained in:
@@ -859,7 +859,7 @@ angular
|
|||||||
resetValidity();
|
resetValidity();
|
||||||
const res = await $http.get(`/api/repo/${o.owner}/${o.repo}/`);
|
const res = await $http.get(`/api/repo/${o.owner}/${o.repo}/`);
|
||||||
$scope.details = res.data;
|
$scope.details = res.data;
|
||||||
if ($scope.details.size > 1024 * 8) {
|
if ($scope.details.size > 500 * 1024 * 8) {
|
||||||
$scope.options.mode = "GitHubStream";
|
$scope.options.mode = "GitHubStream";
|
||||||
$scope.anonymize.mode.$$element[0].disabled = true;
|
$scope.anonymize.mode.$$element[0].disabled = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user