|
|
@ -49,7 +49,7 @@ function HomeTabFile ({plugin}: HomeTabFileProps) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (await workspace.exists(type + '/' + cleanUrl)) toast('File already exists in workspace') |
|
|
|
if (await workspace.exists(type + '/' + cleanUrl)) toast('File already exists in workspace') |
|
|
|
else { |
|
|
|
else { |
|
|
|
workspace.addExternal(cleanUrl, content, url) |
|
|
|
workspace.addExternal(type + '/' + cleanUrl, content, url) |
|
|
|
plugin.call('menuicons', 'select', 'filePanel') |
|
|
|
plugin.call('menuicons', 'select', 'filePanel') |
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|