Работа над WebWorker и DbCreator

This commit is contained in:
Book Pauk
2022-08-17 20:47:34 +07:00
parent a93ae030c4
commit 801a4cdbb5
4 changed files with 233 additions and 6 deletions

View File

@@ -34,10 +34,20 @@ function hasProp(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
function freeMemory() {
if (global.gc) {
global.gc();
global.gc();
global.gc();
}
}
module.exports = {
sleep,
versionText,
findFiles,
touchFile,
hasProp,
freeMemory,
};