Stackedit/js/main.js
2013-04-04 23:13:48 +01:00

32 lines
810 B
JavaScript

requirejs.config({
paths: {
custo: [
'dev/custo',
'prod/custo'
]
},
shim: {
'jquery-ui': ['jquery'],
'bootstrap': ['jquery'],
'jgrowl': ['jquery'],
'layout': ['jquery-ui'],
'Markdown.Sanitizer': ['Markdown.Converter'],
'Markdown.Editor': ['Markdown.Sanitizer']
}
});
require(["jquery", "core", "file-manager", "config", "custo"], function($, core, fileManager) {
$(function() {
// If browser downloaded a new app cache.
if (window.applicationCache
&& window.applicationCache.status == window.applicationCache.UPDATEREADY) {
window.applicationCache.swapCache();
window.location.reload();
return;
}
core.init();
fileManager.init();
});
});