docs(user-menu) add export default

coderaiser 2020-11-22 16:37:22 +02:00
parent 70f928a532
commit 608fad131f

@ -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) {