Stackedit/js/main.js
2013-04-13 14:15:27 +01:00

28 lines
695 B
JavaScript

// RequireJS configuration
requirejs.config({
waitSeconds: 0,
shim: {
'jquery-ui': ['jquery'],
'bootstrap': ['jquery'],
'jgrowl': ['jquery'],
'layout': ['jquery-ui'],
'Markdown.Sanitizer': ['Markdown.Converter'],
'Markdown.Editor': ['Markdown.Sanitizer']
}
});
require(["jquery", "core"], function($, core) {
$(function() {
// If browser has detected a new application cache.
if (window.applicationCache
&& window.applicationCache.status === window.applicationCache.UPDATEREADY) {
window.applicationCache.swapCache();
window.location.reload();
return;
}
core.init();
});
});