31
edits
Mgautierfr (talk | contribs) m |
Mgautierfr (talk | contribs) m (→At reading) |
||
Line 53: | Line 53: | ||
=== At reading === | === At reading === | ||
* User goes to a page. If SW is not loaded, | * User goes to a page. If SW is not loaded, inserted script redirect to index.html, which load SW and register itself as new collection (using "top frame" as top page) and redirect to request page once collection is added. | ||
* SW handle the URL, it does: | * SW handle the URL, it does: | ||
** Find the | ** Find the right collection (base on book name) | ||
** make [https://github.com/webrecorder/wabac.js/blob/main/src/collection.js#L56 coll.handleRequest] | ** make [https://github.com/webrecorder/wabac.js/blob/main/src/collection.js#L56 coll.handleRequest] | ||
*** does `[https://github.com/webrecorder/wabac.js/blob/main/src/collection.js#L275 getReplayResponse]` | *** does `[https://github.com/webrecorder/wabac.js/blob/main/src/collection.js#L275 getReplayResponse]` |
edits