Skip to content
Snippets Groups Projects
Commit defdbe3c authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

removed unneeded callback checks in routes_request that could potentially fail

parent 25e4a071
No related branches found
No related tags found
No related merge requests found
OC.router_base_url = OC.webroot + '/index.php/',
OC.Router = {
loadedCallback: null,
// register your ajax requests to load after the loading of the routes
// has finished. otherwise you face problems with race conditions
registerLoadedCallback: function(callback){
......@@ -11,9 +10,6 @@ OC.Router = {
success: function(jsondata) {
if (jsondata.status === 'success') {
OC.Router.routes = jsondata.data;
if(OC.Router.loadedCallback !== null){
OC.Router.loadedCallback();
}
}
}
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment