typo and try to unset params.app

This commit is contained in:
frju365 2018-08-30 15:00:29 +02:00 committed by GitHub
parent 35f812ab72
commit 3d382c4fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -467,17 +467,18 @@
xhr_object.send(null); xhr_object.send(null);
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) {