Do not load data on github.com.
This commit is contained in:
@@ -343,14 +343,16 @@ var applyTimeout = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Load markdown from /data/page into the ace editor. */
|
/* Load markdown from /data/page into the ace editor. */
|
||||||
jQuery.ajax( {
|
if (location.host.indexOf('github.com') === -1) {
|
||||||
type: 'GET',
|
jQuery.ajax( {
|
||||||
url: '/data/' + $.key( 'page' ),
|
type: 'GET',
|
||||||
success: function( data ) {
|
url: '/data/' + $.key( 'page' ),
|
||||||
editorSession.setValue( data );
|
success: function( data ) {
|
||||||
}
|
editorSession.setValue( data );
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$( '#save' ).click( function() {
|
$( '#save' ).click( function() {
|
||||||
$.save();
|
$.save();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user