Added smart custo detection
This commit is contained in:
parent
02a263df2d
commit
f92ecd5d16
@ -1 +1 @@
|
||||
CACHE MANIFEST
# v24
CACHE:
index.html
css/bootstrap.css
css/jgrowl.css
css/main.css
js/async-runner.js
js/bootstrap.js
js/config.js
js/custo.github.js
js/gdrive.js
js/jgrowl.js
js/jquery.js
js/jquery-ui.js
js/layout.js
js/main.js
js/Markdown.Converter.js
js/Markdown.Editor.js
js/Markdown.Sanitizer.js
js/require.js
js/synchronizer.js
img/ajax-loader.gif
img/dropbox.png
img/gdrive.png
img/glyphicons-halflings.png
img/glyphicons-halflings-white.png
img/stackedit-16.png
img/stackedit-32.ico
NETWORK:
*
|
||||
CACHE MANIFEST
# v25
CACHE:
index.html
css/bootstrap.css
css/jgrowl.css
css/main.css
js/async-runner.js
js/bootstrap.js
js/config.js
js/custo.github.js
js/gdrive.js
js/jgrowl.js
js/jquery.js
js/jquery-ui.js
js/layout.js
js/main.js
js/Markdown.Converter.js
js/Markdown.Editor.js
js/Markdown.Sanitizer.js
js/require.js
js/synchronizer.js
img/ajax-loader.gif
img/dropbox.png
img/gdrive.png
img/glyphicons-halflings.png
img/glyphicons-halflings-white.png
img/stackedit-16.png
img/stackedit-32.ico
NETWORK:
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Use specific customization for sites
|
||||
var configPaths = {};
|
||||
if(location.hostname == "benweet.github.com") {
|
||||
paths.custo = 'custo.github';
|
||||
configPaths.custo = 'custo.github';
|
||||
}
|
||||
|
||||
// RequireJS configuration
|
||||
@ -22,7 +22,7 @@ require(["jquery", "core", "file-manager", "config", "custo"], function($, core,
|
||||
|
||||
// If browser detected a new application cache.
|
||||
if (window.applicationCache
|
||||
&& window.applicationCache.status == window.applicationCache.UPDATEREADY) {
|
||||
&& window.applicationCache.status === window.applicationCache.UPDATEREADY) {
|
||||
window.applicationCache.swapCache();
|
||||
window.location.reload();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user