Browse Source

enable appcache for editor

pull/19/head
Aaron Parecki 9 years ago
parent
commit
5ceefdf927
2 changed files with 6 additions and 6 deletions
  1. +5
    -5
      controllers/editor.php
  2. +1
    -1
      views/editor.php

+ 5
- 5
controllers/editor.php View File

@ -61,9 +61,9 @@ $app->post('/editor/test-login', function() use($app) {
$app->response()->body(json_encode(['logged_in'=>$logged_in])); $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);
});

+ 1
- 1
views/editor.php View File

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

Loading…
Cancel
Save