Skip to content

Commit 9663a49

Browse files
committed
feature: @cloudcmd/user-menu: copy-url-to-current-file: additional slash
1 parent 5fbcdc3 commit 9663a49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

menu/copy-url-to-current-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const copyURLToCurrentFile = async ({DOM}) => {
22
const {path} = DOM.CurrentInfo;
3-
const url = `${window.location.href}${path}`;
3+
const url = `${window.location.href}${path.slice(1)}`;
44
const {default: clipboard} = await import('https://cdn.skypack.dev/@cloudcmd/clipboard');
55

66
await clipboard.writeText(url);

0 commit comments

Comments
 (0)