Archived
1
0

Fix trash

This commit is contained in:
Asher
2019-03-12 13:09:20 -05:00
parent 3155eb76f5
commit e1dc6967ed
8 changed files with 435 additions and 206 deletions

View File

@ -180,10 +180,8 @@ class Clipboard {
class Shell {
public async moveItemToTrash(path: string): Promise<void> {
await client.evaluate((_helper, path) => {
const trash = __non_webpack_require__("trash") as typeof import("trash");
return trash(path);
await client.evaluate((helper, path) => {
return helper.modules.trash(path);
}, path);
}
}