From b6a3aba73ff36c49a109f73c72a423b023073e74 Mon Sep 17 00:00:00 2001 From: Benoit Schweblin Date: Fri, 5 Apr 2013 20:17:12 +0100 Subject: [PATCH] Added smart custo detection --- cache.manifest | 2 +- js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cache.manifest b/cache.manifest index 93d5ca1e..c41597b1 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1 +1 @@ -CACHE MANIFEST # v28 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 # v29 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: * diff --git a/js/main.js b/js/main.js index cf0f80db..557bd786 100644 --- a/js/main.js +++ b/js/main.js @@ -1,6 +1,6 @@ // Use specific customization for sites var configPaths = {}; -if(location.hostname == "benweet.github.com") { +if(location.hostname.indexOf("benweet.github.") === 0) { configPaths.custo = 'custo.github'; }