watch-party/frontend/lib/state.mjs

8 lines
114 B
JavaScript
Raw Permalink Normal View History

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