Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
wLotherington authored May 2, 2021
2 parents f2d277f + 3fa3a2f commit 97b2314
Show file tree
Hide file tree
Showing 3 changed files with 7,183 additions and 6 deletions.
7,181 changes: 7,180 additions & 1 deletion dist/ekko-client-v2.2.0.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/ekko-client-v2.2.1.js

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions lib/ekko.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const generateUUID = require("lil-uuid");

class Ekko {
constructor({ host, appName, uuid, jwt }) {
this.host = cleanHost(host);
this.host = this.cleanHost(host);
this.appName = appName;
this.uuid = uuid || generateUUID();

Expand Down Expand Up @@ -53,10 +53,7 @@ class Ekko {
}

cleanHost(host) {
if (host.slice(-1) !== "/") {
return host + "/";
}

if (host.slice(-1) !== "/") return host + "/";
return host;
}
}
Expand Down

0 comments on commit 97b2314

Please sign in to comment.