提交 a633b1a4 编写于 作者: D Daniel Imms

💄

上级 ea4e0f4b
......@@ -210,11 +210,12 @@ export class TerminalPanel extends Panel {
if (!e.dataTransfer) {
return;
}
// check if the file was dragged from the tree explorer
// Check if the file was dragged from the tree explorer
const url = e.dataTransfer.getData('URL');
let filePath = URI.parse(url).path;
// check if the file was dragged from the filesystem
// Check if the file was dragged from the filesystem
if (!filePath && e.dataTransfer.files.length > 0) {
filePath = e.dataTransfer.files[0].path;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册