mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(listeners) copyPath
This commit is contained in:
parent
4aedc1d481
commit
530d0ee14c
1 changed files with 3 additions and 5 deletions
|
|
@ -5,12 +5,10 @@
|
|||
const exec = require('execon');
|
||||
const itype = require('itype/legacy');
|
||||
const currify = require('currify/legacy');
|
||||
const clipboard = require('@cloudcmd/clipboard');
|
||||
|
||||
const getRange = require('./get-range');
|
||||
|
||||
const getIndex = currify(require('./get-index'));
|
||||
|
||||
const {writeText} = require('@cloudcmd/clipboard');
|
||||
|
||||
const uploadFiles = require('../dom/upload-files');
|
||||
|
||||
const {
|
||||
|
|
@ -219,7 +217,7 @@ function onPathElementClick(panel, event) {
|
|||
}
|
||||
|
||||
function copyPath(el) {
|
||||
writeText(el.parentElement.title)
|
||||
clipboard.writeText(el.parentElement.title)
|
||||
.then(CloudCmd.log)
|
||||
.catch(CloudCmd.log);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue