mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 15:23:50 +02:00
Fix VRCX.json being slow to save
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import * as workerTimers from 'worker-timers';
|
||||
|
||||
let VRCXStorage = {};
|
||||
|
||||
export default class {
|
||||
@@ -40,12 +38,5 @@ export default class {
|
||||
VRCXStorage.SetObject = function (key, value) {
|
||||
this.Set(key, JSON.stringify(value));
|
||||
};
|
||||
|
||||
workerTimers.setInterval(
|
||||
() => {
|
||||
VRCXStorage.Flush();
|
||||
},
|
||||
5 * 60 * 1000
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user