mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
typo and try to unset params.app
This commit is contained in:
parent
35f812ab72
commit
3d382c4fcd
1 changed files with 4 additions and 3 deletions
|
@ -468,16 +468,17 @@
|
||||||
return xhr_object.status;
|
return xhr_object.status;
|
||||||
} === 200) {
|
} === 200) {
|
||||||
rawpath = 'raw/master/manifest.json';
|
rawpath = 'raw/master/manifest.json';
|
||||||
|
var giturl = params.app + rawpath;
|
||||||
} // Install custom app from github
|
} // Install custom app from github
|
||||||
else if (params.app.indexOf("github.com") !== "-1") {
|
else if (params.app.indexOf("github.com") !== "-1") {
|
||||||
params.app = params.app.replace('github.com', 'raw.githubusercontent.com');
|
|
||||||
rawpath = 'master/manifest.json';
|
rawpath = 'master/manifest.json';
|
||||||
|
var giturl = params.app.replace('github.com', 'raw.githubusercontent.com') + rawpath;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("You git host is not supported");
|
console.log("You git host is not supported");
|
||||||
}
|
}
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
url: params.app + rawpath,
|
url: giturl,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
})
|
})
|
||||||
.done(function(manifest) {
|
.done(function(manifest) {
|
||||||
|
|
Loading…
Reference in a new issue