Skip to content

Commit

Permalink
Solves isse IshaanAdarsh#117
Browse files Browse the repository at this point in the history
  • Loading branch information
SanskarSonwani committed Nov 17, 2023
1 parent ec644c8 commit a6104d7
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 a6104d7

Please sign in to comment.