cineflex/public/js/freq.js

25 lines
409 B
JavaScript
Raw Normal View History

2023-02-02 08:17:38 +01:00
class FreqManager {
#store;
static getInstance() {
if (this._instance === null) {
this._instance = new FreqManager();
}
return this._instance;
}
constructor() {
this.#store = {};
}
set(key, value) {
this.#store[key] = value;
}
get(key) {
return this.#store[key];
}
}
window.freq = FreqManager.getInstance();