mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
docs(user-menu) add export default
parent
70f928a532
commit
608fad131f
1 changed files with 6 additions and 4 deletions
|
|
@ -25,11 +25,13 @@ const {
|
|||
clipboard = {writeText}
|
||||
} = navigator;
|
||||
|
||||
'F6 - Copy URL to Current File': async ({DOM}) => {
|
||||
const {path} = DOM.CurrentInfo;
|
||||
const url = `${window.location.href}${path}`;
|
||||
export default {
|
||||
'F6 - Copy URL to Current File': async ({DOM}) => {
|
||||
const {path} = DOM.CurrentInfo;
|
||||
const url = `${window.location.href}${path}`;
|
||||
|
||||
await clipboard.writeText(url);
|
||||
await clipboard.writeText(url);
|
||||
}
|
||||
}
|
||||
|
||||
async function writeText(value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue