jacobinathanialpeterson commited on
Commit
996546e
·
1 Parent(s): b0a736a

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +1 -1
static/script.js CHANGED
@@ -54,7 +54,7 @@ function getMessages(roomId=myRoomId, url="https://jacobinathanialpeterson-chatb
54
  })
55
  .then(response => { if (!response.ok) { throw new Error('Network response was not ok.') } return response.json() })
56
  .then(data => {
57
- if (data) {
58
  // Get the button element you want to preserve
59
  const preserveButton = document.getElementById('createRoom');
60
 
 
54
  })
55
  .then(response => { if (!response.ok) { throw new Error('Network response was not ok.') } return response.json() })
56
  .then(data => {
57
+ if (data.message) {
58
  // Get the button element you want to preserve
59
  const preserveButton = document.getElementById('createRoom');
60