mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-03-07 05:10:43 +00:00
fix: catch error when requesting a folder
This commit is contained in:
@@ -580,18 +580,7 @@ angular
|
||||
$scope.$on("$routeUpdate", changedUrl);
|
||||
},
|
||||
])
|
||||
.controller("faqController", [
|
||||
"$scope",
|
||||
"$http",
|
||||
function ($scope, $http) {
|
||||
function getSupportedFileTypes() {
|
||||
$http.get("/api/supportedTypes").then((res) => {
|
||||
$scope.supportedFileTypes = res.data;
|
||||
});
|
||||
}
|
||||
getSupportedFileTypes();
|
||||
},
|
||||
])
|
||||
.controller("faqController", ["$scope", "$http", function ($scope, $http) {}])
|
||||
.controller("profileController", [
|
||||
"$scope",
|
||||
"$http",
|
||||
|
||||
2
public/script/bundle.min.js
vendored
2
public/script/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user