[enh] Use githubusercontent.com instead of rawgit.com

This commit is contained in:
opi 2015-08-21 10:59:28 +02:00
parent 2115a712fa
commit cf2bc45eb3

View file

@ -1179,13 +1179,12 @@ app = Sammy('#main', function (sam) {
// Get manifest.json to get additional parameters // Get manifest.json to get additional parameters
jQuery.ajax({ 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', type: 'GET',
crossdomain: true,
dataType: 'json',
}) })
.done(function(manifest) { .done(function(manifest) {
manifest = manifest || {}; // raw.githubusercontent.com serve content as plain text
manifest = jQuery.parseJSON(manifest) || {};
c.appInstallForm( c.appInstallForm(
params.app, params.app,