From 8008d3236cfe0c224c4ad34deadddb053ab7f06a Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 22 Jan 2018 12:33:27 -0500 Subject: [PATCH] remove appcache stuff --- controllers/controllers.php | 9 --------- views/appcache.php | 14 -------------- views/layout.php | 8 +------- views/new-post.php | 10 ---------- 4 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 views/appcache.php diff --git a/controllers/controllers.php b/controllers/controllers.php index 99d5802..8d6f6a5 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -366,15 +366,6 @@ $app->get('/map.png', function() use($app) { $app->response()->body($img); }); -/* -$app->get('/teacup.appcache', function() use($app) { - $content = partial('appcache'); - - $app->response()['Content-type'] = 'text/cache-manifest'; - $app->response()->body($content); -}); -*/ - $app->get('/:domain', function($domain) use($app) { $params = $app->request()->params(); diff --git a/views/appcache.php b/views/appcache.php deleted file mode 100644 index d3979b1..0000000 --- a/views/appcache.php +++ /dev/null @@ -1,14 +0,0 @@ -CACHE MANIFEST -/bootstrap/css/bootstrap.min.css -/bootstrap/css/bootstrap-theme.css -/bootstrap/css/bootstrap-theme.css.map -/css/font-awesome/css/font-awesome.min.css -/css/style.css -/js/jquery-1.7.1.min.js -/images/teacup-logo-144.png -/images/spinner.gif - -NETWORK: -* - -# v31 diff --git a/views/layout.php b/views/layout.php index ea1480a..b1d5d42 100644 --- a/views/layout.php +++ b/views/layout.php @@ -1,5 +1,5 @@ -> + <?= $this->title ?> @@ -65,11 +65,5 @@ -
-
- There is a new version available! Refresh to load the new version. -
-
- \ No newline at end of file diff --git a/views/new-post.php b/views/new-post.php index dbf4c44..bdccb99 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -296,16 +296,6 @@ $(function(){ } }); - function onUpdateReady() { - // Show the notice that says there is a new version of the app - $("#new_version_available").show(); - } - - window.applicationCache.addEventListener('updateready', onUpdateReady); - if(window.applicationCache.status === window.applicationCache.UPDATEREADY) { - onUpdateReady(); - } - });