Skip to content

Commit

Permalink
Release v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Nov 17, 2021
1 parent 88a9e98 commit eae42c5
Show file tree
Hide file tree
Showing 4 changed files with 345 additions and 262 deletions.
12 changes: 6 additions & 6 deletions boardStatus.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const ws = new WebSocket('ws://localhost:9421')
const ws = new WebSocket("ws://localhost:9421");

onload = () => {
let image = document.getElementById("notificationImage");
ws.onmessage = ({ data: boardURI }) => {
if (boardURI.startsWith('board-update')) {
console.log('Updating Remote Board')
image.src = boardURI.replace('board-update:', '');
if (boardURI.startsWith("board-update")) {
console.log("Updating Remote Board");
image.src = boardURI.replace("board-update:", "");
}
}
};

document.body.style = "background-color:rgb(49, 46, 43)";
}
};
Loading

0 comments on commit eae42c5

Please sign in to comment.