Browse Source

enable appcache for editor

pull/19/head
Aaron Parecki 6 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->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>
<html lang="en" manifest_="appcache.manifest">
<html lang="en" manifest="appcache.manifest">
<head>
<title>Quill Editor</title>
<meta charset="utf-8">

Loading…
Cancel
Save