Browse Source

enable appcache for editor

pull/19/head
Aaron Parecki 9 years ago
parent
commit
5ceefdf927
  1. 10
      controllers/editor.php
  2. 2
      views/editor.php

10
controllers/editor.php

@ -61,9 +61,9 @@ $app->post('/editor/test-login', function() use($app) {
$app->response()->body(json_encode(['logged_in'=>$logged_in]));
});
// $app->get('/appcache.manifest', function() use($app) {
// $content = partial('partials/appcache');
$app->get('/appcache.manifest', function() use($app) {
$content = partial('partials/appcache');
// $app->response()['Content-type'] = 'text/cache-manifest';
// $app->response()->body($content);
// });
$app->response()['Content-type'] = 'text/cache-manifest';
$app->response()->body($content);
});

2
views/editor.php

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" manifest_="appcache.manifest">
<html lang="en" manifest="appcache.manifest">
<head>
<title>Quill Editor</title>
<meta charset="utf-8">

Loading…
Cancel
Save