mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Use githubusercontent.com instead of rawgit.com
This commit is contained in:
parent
2115a712fa
commit
cf2bc45eb3
1 changed files with 3 additions and 4 deletions
|
@ -1179,13 +1179,12 @@ app = Sammy('#main', function (sam) {
|
|||
|
||||
// Get manifest.json to get additional parameters
|
||||
jQuery.ajax({
|
||||
url: params.app.replace('github.com', 'rawgit.com') + 'master/manifest.json',
|
||||
url: params.app.replace('github.com', 'raw.githubusercontent.com') + 'master/manifest.json',
|
||||
type: 'GET',
|
||||
crossdomain: true,
|
||||
dataType: 'json',
|
||||
})
|
||||
.done(function(manifest) {
|
||||
manifest = manifest || {};
|
||||
// raw.githubusercontent.com serve content as plain text
|
||||
manifest = jQuery.parseJSON(manifest) || {};
|
||||
|
||||
c.appInstallForm(
|
||||
params.app,
|
||||
|
|
Loading…
Reference in a new issue