tweaked getting the configuration from the cookie
This commit is contained in:
parent
e73778ab18
commit
4bd0c7c7c1
|
@ -25,7 +25,9 @@ function(syscall, time, alerts, utils, rootScope, uri) {
|
|||
}
|
||||
|
||||
var cookieConf = utils.getCookie('aria2conf');
|
||||
if (cookieConf) configurations.unshift(cookieConf);
|
||||
|
||||
// try at the end, so that it is not overwridden in case it doesnt work
|
||||
if (cookieConf) configurations.push(cookieConf);
|
||||
|
||||
// update is implemented such that
|
||||
// only one syscall at max is ongoing
|
||||
|
|
|
@ -18,6 +18,8 @@ angular.module('webui.services.utils', [])
|
|||
return JSON.parse(unescape(cvalue));
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
getFileName: function(path) {
|
||||
var seed = path.split(/[/\\]/);
|
||||
|
|
Loading…
Reference in New Issue
Block a user