Merge pull request #70626 from Faless/web/4.x_expose_force_fs_sync

[Web] Expose API to force file system sync.
This commit is contained in:
Fabio Alessandrelli 2023-01-09 21:18:47 +01:00 committed by GitHub
commit 6b2abf4605
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 0 deletions

View file

@ -361,6 +361,11 @@ void JavaScriptBridge::download_buffer(Vector<uint8_t> p_arr, const String &p_na
bool JavaScriptBridge::pwa_needs_update() const {
return OS_Web::get_singleton()->pwa_needs_update();
}
Error JavaScriptBridge::pwa_update() {
return OS_Web::get_singleton()->pwa_update();
}
void JavaScriptBridge::force_fs_sync() {
OS_Web::get_singleton()->force_fs_sync();
}