mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
[Web] Expose API to force file system sync.
This commit is contained in:
parent
111de09c03
commit
d0ba1517a7
6 changed files with 23 additions and 0 deletions
|
@ -1145,6 +1145,12 @@ Error OS_JavaScript::pwa_update() {
|
|||
return godot_js_pwa_update() ? FAILED : OK;
|
||||
}
|
||||
|
||||
void OS_JavaScript::force_fs_sync() {
|
||||
if (is_userfs_persistent()) {
|
||||
idb_needs_sync = true;
|
||||
}
|
||||
}
|
||||
|
||||
bool OS_JavaScript::is_userfs_persistent() const {
|
||||
return idb_available;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue