Do not load data on github.com.

This commit is contained in:
bootstraponline
2012-07-06 12:21:55 -06:00
parent 874d658d2a
commit 53f676bf2e
@@ -343,14 +343,16 @@ var applyTimeout = function () {
};
/* Load markdown from /data/page into the ace editor. */
jQuery.ajax( {
type: 'GET',
url: '/data/' + $.key( 'page' ),
success: function( data ) {
editorSession.setValue( data );
}
});
if (location.host.indexOf('github.com') === -1) {
jQuery.ajax( {
type: 'GET',
url: '/data/' + $.key( 'page' ),
success: function( data ) {
editorSession.setValue( data );
}
});
}
$( '#save' ).click( function() {
$.save();
});