Add protocol to link copy
This commit is contained in:
parent
e96ba540f2
commit
752f8defa0
2
js/chapter.min.js
vendored
2
js/chapter.min.js
vendored
File diff suppressed because one or more lines are too long
2
js/complete.min.js
vendored
2
js/complete.min.js
vendored
File diff suppressed because one or more lines are too long
@ -203,7 +203,7 @@ if (fcn_paragraphTools) {
|
|||||||
// Listen for click on paragraph tools copy link button
|
// Listen for click on paragraph tools copy link button
|
||||||
_$$$('button-get-link').onclick = (e) => {
|
_$$$('button-get-link').onclick = (e) => {
|
||||||
fcn_copyToClipboard(
|
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
|
fictioneer_tl.notification.linkCopiedToClipboard
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user