CHECK(3RELEASE)Pyon manual · Install and Update, shared by every pageCHECK(3RELEASE)

NAME

check — look for a new release

SYNOPSIS

check()

DESCRIPTION

Online and not from a file, it reads the build stamped in sw.js on the site, bypassing every cache. When it differs from the page's own build, a new release is ready: the page is told (onChange), the notice "A new release is ready … Tap Update now" is shown once for that build, and the service worker is asked to update. Offline or unreachable, it says nothing.

RETURN VALUE

A promise.

SEE ALSO

start(3release), reinstall(3release), hasNewer(3release)

SOURCE

src/release.js, line 68

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0