diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-09 18:15:41 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 07:36:50 -0700 |
commit | 6d841c909bee1fc40bb18b3319eb1f305e0def65 (patch) | |
tree | dbeedea25ee514bd560a3cb93d8b377c44730b92 /theme/javascript | |
parent | e917fd28e06b7f9527504fa74a2a5fe5cee8e466 (diff) | |
download | gitbook-6d841c909bee1fc40bb18b3319eb1f305e0def65.zip gitbook-6d841c909bee1fc40bb18b3319eb1f305e0def65.tar.gz gitbook-6d841c909bee1fc40bb18b3319eb1f305e0def65.tar.bz2 |
Remove appCache handling from client js
Diffstat (limited to 'theme/javascript')
-rwxr-xr-x | theme/javascript/gitbook.js | 6 | ||||
-rw-r--r-- | theme/javascript/utils/appcache.js | 15 |
2 files changed, 1 insertions, 20 deletions
diff --git a/theme/javascript/gitbook.js b/theme/javascript/gitbook.js index 579977c..02a55fa 100755 --- a/theme/javascript/gitbook.js +++ b/theme/javascript/gitbook.js @@ -2,7 +2,6 @@ define([ "jQuery", "utils/storage", "utils/sharing", - "utils/appcache", "core/events", "core/font-settings", @@ -12,7 +11,7 @@ define([ "core/progress", "core/sidebar", "core/search" -], function($, storage, appCache, sharing, events, fontSettings, state, keyboard, navigation, progress, sidebar, search){ +], function($, storage, sharing, events, fontSettings, state, keyboard, navigation, progress, sidebar, search){ var start = function(config) { var $book; $book = state.$book; @@ -31,9 +30,6 @@ define([ // Init keyboard keyboard.init(); - // Init appcache - appCache.init(); - // Bind sharing button sharing.init(); diff --git a/theme/javascript/utils/appcache.js b/theme/javascript/utils/appcache.js deleted file mode 100644 index e813ab0..0000000 --- a/theme/javascript/utils/appcache.js +++ /dev/null @@ -1,15 +0,0 @@ -define([], function() { - var isAvailable = (typeof applicationCache !== "undefined"); - - var init = function() { - if (!isAvailable) return; - - window.applicationCache.addEventListener('updateready', function() { - window.location.reload(); - }, false); - }; - - return { - init: init - }; -});
\ No newline at end of file |