Guillermo Rauch
9 years ago
1 changed files with 10 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||||
|
import { copy as _copy } from 'copy-paste'; |
||||
|
|
||||
|
export default function copy (text) { |
||||
|
return new Promise((resolve, reject) => { |
||||
|
_copy(text, (err) => { |
||||
|
if (err) return reject(err); |
||||
|
resolve(); |
||||
|
}); |
||||
|
}); |
||||
|
} |
Loading…
Reference in new issue