Skip to content

Commit

Permalink
Merge pull request IshaanAdarsh#118 from SanskarSonwani/fix-#117
Browse files Browse the repository at this point in the history
fixes-issues IshaanAdarsh#117
  • Loading branch information
IshaanAdarsh authored Nov 17, 2023
2 parents ec644c8 + a6104d7 commit 2ca9aea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/routes/admin/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
let mail = '[email protected]';
let id = '' ;
let send = () => {
let body = document.getElementById("text").value;
var text = document.getElementById('text').value.split('\n');
var body = text.join('%0D%0A');
let bod = document.getElementById("text").value;
let email = id;
let subject = data.post.title;
window.location = "mailto:" + email + "?subject=" + subject + "&body=" + body;
Expand Down
4 changes: 3 additions & 1 deletion src/routes/others/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
let mail = '[email protected]';
let id = '' ;
let send = () => {
let body = document.getElementById("text").value;
var text = document.getElementById('text').value.split('\n');
var body = text.join('%0D%0A');
let bod = document.getElementById("text").value;
let email = id;
let subject = data.post.title;
window.location = "mailto:" + email + "?subject=" + subject + "&body=" + body;
Expand Down

0 comments on commit 2ca9aea

Please sign in to comment.