watch-party/frontend/lib/state.mjs

8 lines
114 B
JavaScript
Raw Normal View History

2022-03-30 06:02:08 -07:00
let instance = null;
export const state = () => {
if (!instance) {
instance = {};
}
return instance;
};