NAME
reinstall — Update: reinstall the app inside itself
SYNOPSIS
reinstall()
DESCRIPTION
Refuses from a file: address and while a story plays. First it asks the site for the page with the cache bypassed; when that fails, nothing is changed and it says so. Then it deletes Pyon's caches (those whose names begin pyon-), unregisters Pyon's service workers, fetches afresh every file of the site the page has used, notes the build it came from, and reloads the page with ?reinstall=…, after which start() says "Updated", with the release and whether it was already the newest.
RETURN VALUE
A promise.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
