Commit Graph

17 Commits

Author SHA1 Message Date
Dan cc963ebce3 Determine service worker script path based on path of main script. 2017-12-26 21:26:01 -08:00
Dan 6e51b26c9c Scoping service worker to /ipfs/ so / can contain other pages. 2017-12-25 12:41:01 -08:00
Dan 04d2391f26 Make every base hash its own origin, effectively. 2017-12-23 22:30:47 -08:00
Dan e6fc8a8b13 Fix broken initial page load by excluding our own JavaScript. Also return 404 on error. 2017-12-22 23:16:48 -08:00
Dan 6bc10e2ef2 To prevent reload loops, return a 404 from the service worker if the URL isn't a valid IPFS URL. 2017-12-22 21:42:13 -08:00
Dan 226c88c9da Adding some additional console logging to the service worker. 2017-12-22 20:45:13 -08:00
Dan 3940a66c3e No longer a fork. 2017-12-22 15:52:42 -08:00
Dan 433af16853 Redirect to trailing slash version of page. 2017-12-21 22:52:52 -08:00
Dan 5624a03168 Upgrade js-ipfs version and add support for 404 pages. 2017-12-21 22:16:53 -08:00
Dan aba3b8d8b4 After initial registration, trigger a fetch event for the page in the service worker. 2017-12-20 23:14:51 -08:00
Dan fad1d327f4 Adding missing service worker source file. 2017-12-20 21:52:58 -08:00
Dan acc7964f0e Service worker for intercepting URLs and loading them from IPFS. 2017-12-20 21:21:49 -08:00
Dan 9b998a6318 Fix for embedded CSS ">" characters. 2017-12-16 22:44:22 -08:00
Dan c75b3dc50c Support for even CSS url() rewriting! 2017-12-16 22:08:33 -08:00
Dan c033769279 Better support for loading HTML pages plus some of their referenced content. 2017-12-16 21:34:40 -08:00
Dan a79b73e112 Got basic IPFS file contents load and rendering working. 2017-12-09 23:06:25 -08:00
Dan 013f198b74 Initial import. 2017-12-05 22:09:58 -08:00