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