braid-text 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@
12
12
  var cursors = cursor_highlights(the_editor, location.pathname)
13
13
 
14
14
  var simpleton = simpleton_client(location.pathname, {
15
+ on_online: ({online}) => { online ? cursors.online() : cursors.offline() },
15
16
  on_patches: (patches) => {
16
17
  apply_patches_and_update_selection(the_editor, patches)
17
18
  cursors.on_patches(patches)
@@ -48,6 +48,7 @@ var render_delay = 100
48
48
  var cursors = cursor_highlights(the_editor, location.pathname)
49
49
 
50
50
  var simpleton = simpleton_client(location.pathname, {
51
+ on_online: ({online}) => { online ? cursors.online() : cursors.offline() },
51
52
  on_patches: (patches) => {
52
53
  apply_patches_and_update_selection(the_editor, patches)
53
54
  cursors.on_patches(patches)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-text",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Library for collaborative text over http using braid.",
5
5
  "author": "Braid Working Group",
6
6
  "repository": "braid-org/braid-text",