mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
[Web] Expose API to force file system sync.
Mostly useful for modules and extensions that can't use FileAccess to write files.
This commit is contained in:
parent
b6e06038f8
commit
615fd98620
6 changed files with 23 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue