diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-02-07 13:21:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-07 13:21:53 +0100 |
| commit | 6a33d8b93fc7175865a9c064c6ba4bf400c9650d (patch) | |
| tree | 53f7fc778fdc8080a9b7b59fc6f47c07f6a585c5 /platform/javascript/os_javascript.h | |
| parent | 88aea70a098d91f1887e7c4e3218ce23c42e3b4f (diff) | |
| parent | 948e66c3d6930924b54ec48a0dfc929040befb0a (diff) | |
Merge pull request #57718 from Faless/js/4.x_pwa_prefer_cache_pr
Diffstat (limited to 'platform/javascript/os_javascript.h')
| -rw-r--r-- | platform/javascript/os_javascript.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/javascript/os_javascript.h b/platform/javascript/os_javascript.h index 3404fe9dcf..9e272f9aa1 100644 --- a/platform/javascript/os_javascript.h +++ b/platform/javascript/os_javascript.h @@ -45,11 +45,13 @@ class OS_JavaScript : public OS_Unix { bool idb_is_syncing = false; bool idb_available = false; bool idb_needs_sync = false; + bool pwa_is_waiting = false; static void main_loop_callback(); static void file_access_close_callback(const String &p_file, int p_flags); static void fs_sync_callback(); + static void update_pwa_state_callback(); protected: void initialize() override; @@ -65,6 +67,9 @@ public: // Override return type to make writing static callbacks less tedious. static OS_JavaScript *get_singleton(); + bool pwa_needs_update() const { return pwa_is_waiting; } + Error pwa_update(); + void initialize_joypads() override; MainLoop *get_main_loop() const override; |