MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

release

MMO · 1 symbole · générée le 27 Oct 2026

namespace

release

Release.js:13

Tell the user when the site was deployed again since their page was loaded: its scripts and views are then those of the old release, and only a reload brings the new ones.

MMO.release = {…}
Espace de noms
MMO
The server says its release in `X-App-Version` on every response, and the one the page was built with in `MMO.config.release` (`Theme::getRelease``). No call of its own: every `fetch()` of the page -- `MMO.fetch`, the `APIRequester`s, all of them go through it -- is looked at as it comes back, and the first one whose release is not the page's shows a notification offering to reload. It never reloads by itself: a form may be half filled. A theme with `releaseCheck: false` sends neither, and nothing is ever shown.

Index

offered
current()
check(response)
notify(version)Offer to reload, once per new release.

Propriétés1

Méthodes3

current()

Release.js:18
current()
retourne?stringthe release the page was built with

check(response)

Release.js:26
check(response)
responseResponse- any response the page got
retournebooleanwhether it comes from a newer release than the page

notify(version)

Release.js:41

Offer to reload, once per new release.

notify(version)
versionstring- the server's