gwa.app.simulateBrowserUpdate()
Simulate a browser update (service worker update) and reload the page if the update was ok.
Syntax
FUNCTION simulateBrowserUpdate() RETURNS STRING
Returns NULL
if the update was successful; otherwise, the string contains an
error message
Usage
Use the gwa.app.simulateBrowserUpdate()
method to simulate a browser update
(service worker update). It reloads the page if the update was ok.
For a complete example, run the GWA "update" demo in your GWA installation directory. If installed in FGLDIR, you will find the demo in $FGLDIR/demo/update or if installed in a separate directory, you will find it in gwa-install-dir/demo/update.