Skip to content

Commit

Permalink
Merge pull request #326 from dunglas/fix/debug-unsubscribe
Browse files Browse the repository at this point in the history
fix: unsubcribe button wasn't working properly in the UI
  • Loading branch information
dunglas committed Jun 10, 2020
2 parents 1909814 + 57e07c1 commit b350a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ foo`;
updateEventSource.onerror = console.log;
this.elements.unsubscribe.disabled = false;
};
$subscribeForm.elements.unsubscribe.onclick = function () {
$subscribeForm.elements.unsubscribe.onclick = function (e) {
e.preventDefault();

updateEventSource.close();
this.disabled = true;
$updates.textContent = "Unsubscribed.";
Expand Down
2 changes: 1 addition & 1 deletion spec/mercure.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ workgroup = "Network Working Group"

[seriesInfo]
name = "Internet-Draft"
value = "draft-dunglas-mercure-05"
value = "draft-dunglas-mercure-06"
stream = "IETF"
status = "informational"

Expand Down

0 comments on commit b350a86

Please sign in to comment.