diff --git a/Examples/OfflineEditing/index.html b/Examples/OfflineEditing/index.html index 891dc69a..d4d1bd77 100644 --- a/Examples/OfflineEditing/index.html +++ b/Examples/OfflineEditing/index.html @@ -1,7 +1,6 @@
- diff --git a/Examples/OfflineEditing/index.js b/Examples/OfflineEditing/index.js index 6708635b..5b9e3889 100644 --- a/Examples/OfflineEditing/index.js +++ b/Examples/OfflineEditing/index.js @@ -7,7 +7,7 @@ Y({ namespace: 'offlineEditingDemo' }, connector: { - name: 'webrtc', + name: 'websockets-client', room: 'offlineEditingDemo', debug: true }, @@ -38,15 +38,4 @@ Y({ if (textpromise == null) { yconfig.root.set('text', Y.Text) } - // We also provide a button for disconnecting/reconnecting the shared element - var button = document.querySelector('#button') - button.onclick = function () { - if (button.innerText === 'Disconnect') { - yconfig.disconnect() - button.innerText = 'Reconnect' - } else { - yconfig.reconnect() - button.innerText = 'Disconnect' - } - } })