Add protocol to link copy

This commit is contained in:
Tetrakern 2024-11-18 14:31:15 +01:00
parent e96ba540f2
commit 752f8defa0
3 changed files with 3 additions and 3 deletions

2
js/chapter.min.js vendored

File diff suppressed because one or more lines are too long

2
js/complete.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -203,7 +203,7 @@ if (fcn_paragraphTools) {
// Listen for click on paragraph tools copy link button
_$$$('button-get-link').onclick = (e) => {
fcn_copyToClipboard(
`${location.host}${location.pathname}#${e.target.closest('p[data-paragraph-id]').id}`,
`${location.protocol}//${location.host}${location.pathname}#${e.target.closest('p[data-paragraph-id]').id}`,
fictioneer_tl.notification.linkCopiedToClipboard
);
}