Skip to content

Commit

Permalink
deploy: 5649b08
Browse files Browse the repository at this point in the history
  • Loading branch information
antmicrobot committed Oct 19, 2023
1 parent 3e5725d commit cd1f7a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MystEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -26408,7 +26408,9 @@ const Kye = Ce.div.withConfig({
c.enabled && (f.disconnect(), g.destroy()), w.destroy();
};
}, []), Gs(() => {
const y = c.enabled && p.toString().length == 0 && f.awareness.getStates().size == 1 && f.firstUser && m;
if (!c.enabled)
return;
const y = p.toString().length == 0 && f.awareness.getStates().size == 1 && f.firstUser && m;
p.toString().length != 0 && e(p.toString()), y ? (console.log("You are the first user in this document. Initiating..."), a.current.dispatch({
changes: {
from: 0,
Expand Down

0 comments on commit cd1f7a2

Please sign in to comment.