Unified · Split
| @@ -23,7 +23,7 @@ app.templates.offlinePage = (docs) -> """ · 22 unmodified lines | ||
| 23 | 23 | <h1 class="_lined-heading">Questions & Answers</h1> |
| 24 | 24 | <dl> |
| 25 | 25 | <dt>How does this work? |
| 26 | − <dd>Each page is cached as a key-value pair in <a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API">IndexedDB</a> (downloaded from a single JSON file).<br> | |
| 26 | + <dd>Each page is cached as a key-value pair in <a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API">IndexedDB</a> (downloaded from a single file).<br> | |
| 27 | 27 | The app also uses <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache">AppCache</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API">localStorage</a> to cache the assets and index files. |
| 28 | 28 | <dt>Can I close the tab/browser? |
| 29 | 29 | <dd>#{canICloseTheTab()} |
| @@ -44,7 +44,7 @@ canICloseTheTab = -> · 14 unmodified lines | ||
| 44 | 44 | """ Yes! Even offline, you can open a new tab, go to <a href="http://devdocs.io">devdocs.io</a>, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand).<br> |
| 45 | 45 | Note that loading any page other than <a href="http://devdocs.io">devdocs.io</a> directly won't work (due to limitations in AppCache). """ |
| 46 | 46 | else |
| 47 | − """ No. Because AppCache is unavailable in your browser (or has been disabled), loading <a href="http://devdocs.io">devdocs.io</a> offline won't work.<br> | |
| 47 | + """ No. AppCache isn't available in your browser (or is disabled) so loading <a href="http://devdocs.io">devdocs.io</a> offline won't work.<br> | |
| 48 | 48 | The current tab will continue to work, though (provided you installed all the documentations you want to use beforehand). """ |
| 49 | 49 | |
| 50 | 50 | app.templates.offlineDoc = (doc, status) -> |