mirror of
https://github.com/coder/code-server.git
synced 2026-05-08 21:37:27 +02:00
Fix trash
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user