Skip to content

Commit

Permalink
fix(drafts): clear textarea on post
Browse files Browse the repository at this point in the history
g-div committed Oct 11, 2017
1 parent 1db4180 commit 87550e4
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/embed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/embed/index.js
Original file line number Diff line number Diff line change
@@ -48,6 +48,9 @@ import comments_tpl from './comments.jst.html';
.then( r => r.json() )
.then((res) => {
console.log(res);
textarea.value = '';
window.localStorage.setItem(`schnack-draft-${slug}`, textarea.value);

refresh();
});
});

0 comments on commit 87550e4

Please sign in to comment.