Skip to content

Commit 5217257

Browse files
committed
1 parent 67d3c91 commit 5217257

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/ghosttext-adaptor/email_editor.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export class EmailEditor implements IClientEditor, IStatusIndicator {
2020
// TODO Add an option to strip HTML tags on edit
2121
// TODO pass a better url that identify the email
2222

23-
return { selections: [{ start: 0, end: 0 }], subject, text: body, url: import.meta.url }
23+
let { host } = new URL(import.meta.url)
24+
25+
return { selections: [{ start: 0, end: 0 }], subject, text: body, url: host }
2426
}
2527

2628
async applyChange(change: EditorChangeResponse): Promise<void> {

0 commit comments

Comments
 (0)