Difference between revisions of "Zimit"

Jump to navigation Jump to search
1 byte added ,  16:49, 23 May 2023
m
m
Line 53: Line 53:
=== At reading ===
=== At reading ===


* User goes to a page. If SW is not loaded, inserte 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.
* 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 rigth collection (base on book name)
** 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]`
31

edits

Navigation menu