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
6 changed files with 23 additions and 0 deletions

View File

@@ -196,6 +196,12 @@ void OS_Web::update_pwa_state_callback() {
}
}
void OS_Web::force_fs_sync() {
if (is_userfs_persistent()) {
idb_needs_sync = true;
}
}
Error OS_Web::pwa_update() {
return godot_js_pwa_update() ? FAILED : OK;
}