Created
October 30, 2014 18:24
-
-
Save alexgb/91777f54b77a05eb3965 to your computer and use it in GitHub Desktop.
Test Vishnu Refresh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var oldAjax = $.ajax; | |
$.ajax = function(url) { | |
if (url === '/version.json') { | |
return $.Deferred().resolve({"commit":"123","version":"v2"}); | |
} else { | |
return oldAjax.apply($, arguments); | |
} | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment