summaryrefslogtreecommitdiffstats
path: root/platform/javascript/godot_js.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-01-31 15:28:12 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-06 18:53:50 +0100
commit948e66c3d6930924b54ec48a0dfc929040befb0a (patch)
treee188b040ed21bb5eb970a7d15e7cf3f18e037274 /platform/javascript/godot_js.h
parent3cc72ac03f6d7254220b17e23384196112c60192 (diff)
downloadredot-engine-948e66c3d6930924b54ec48a0dfc929040befb0a.tar.gz
[HTML5] Implement JavaScript PWA update callbacks.
Allows detecting when a new version of the progressive web app service worker is waiting (i.e. an update is pending), along a function to force the update and reload all clients.
Diffstat (limited to 'platform/javascript/godot_js.h')
-rw-r--r--platform/javascript/godot_js.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/javascript/godot_js.h b/platform/javascript/godot_js.h
index 15de8b5dc7..2cb5c3025c 100644
--- a/platform/javascript/godot_js.h
+++ b/platform/javascript/godot_js.h
@@ -49,6 +49,8 @@ extern void godot_js_os_fs_sync(void (*p_callback)());
extern int godot_js_os_execute(const char *p_json);
extern void godot_js_os_shell_open(const char *p_uri);
extern int godot_js_os_hw_concurrency_get();
+extern int godot_js_pwa_cb(void (*p_callback)());
+extern int godot_js_pwa_update();
// Input
extern void godot_js_input_mouse_button_cb(int (*p_callback)(int p_pressed, int p_button, double p_x, double p_y, int p_modifiers));