[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:
Fabio Alessandrelli 2022-12-27 12:17:42 +01:00
parent b6e06038f8
commit 615fd98620
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();
}