Skip to content

Commit

Permalink
feat: applause button now send version number
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinEberhardt committed Nov 7, 2018
1 parent c5886e5 commit 8f77186
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/applause-button.js
@@ -1,5 +1,6 @@
import "document-register-element/build/document-register-element";

const VERSION = "3.0.0";
const API = "https://api.applause-button.com";

const getClaps = url =>
Expand All @@ -17,7 +18,7 @@ const updateClaps = (claps, url) =>
headers: {
"Content-Type": "text/plain"
},
body: JSON.stringify(claps)
body: JSON.stringify(`${claps},${VERSION}`)
}).then(response => response.text());

const arrayOfSize = size => new Array(size).fill(undefined);
Expand Down

0 comments on commit 8f77186

Please sign in to comment.