Skip to content

Commit

Permalink
Fix version in Hello message
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Dec 20, 2021
1 parent 169a9ad commit dcd2c29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion page/snapstream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class HelloMessage extends JsonMessage {

mac: string = "";
hostname: string = "";
version: string = "0.1.0";
version: string = "0.0.0";
clientName = "Snapweb";
os: string = "";
arch: string = "web";
Expand Down Expand Up @@ -869,6 +869,9 @@ class SnapStream {
hello.os = navigator.platform;
hello.hostname = "Snapweb client";
hello.uniqueId = SnapStream.getClientId();
const versionElem = document.getElementsByTagName("meta").namedItem("version");
hello.version = versionElem ? versionElem.content : "0.0.0";

this.sendMessage(hello);
this.syncTime();
this.syncHandle = window.setInterval(() => this.syncTime(), 1000);
Expand Down

0 comments on commit dcd2c29

Please sign in to comment.