NAME
start — start Install and Update on a page
SYNOPSIS
start(opts)
DESCRIPTION
Takes the page's build and its callbacks; after an update, says "Updated" with the release and build; registers the service worker sw.js (on a secure address); calls onChange once and looks for a new release, then again whenever the page comes back to the screen and every half hour.
PARAMETERS
opts.build: the page's build, stamped by tools/build.py in APP_BUILD. opts.busy: a function that returns true while a story plays, so that Update waits; optional. opts.onChange: called whenever Install or Update should be shown afresh.
RETURN VALUE
Nothing.
EXAMPLE
PyonRelease.start({ build: APP_BUILD, onChange: showRelease });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
