Skip to content

Commit a01a36d

Browse files
committed
fix: plugin installs by selecting local zip file
1 parent 4eff547 commit a01a36d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/lib/installPlugin.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ export default async function installPlugin(
6767
if (!isDependency) loaderDialog.show();
6868

6969
let plugin;
70-
if (pluginUrl.includes(constants.API_BASE)) {
70+
if (
71+
pluginUrl.includes(constants.API_BASE) ||
72+
pluginUrl.startsWith("file:") ||
73+
pluginUrl.startsWith("content:")
74+
) {
7175
// Use fsOperation for Acode registry URL
7276
plugin = await fsOperation(pluginUrl).readFile(
7377
undefined,

0 commit comments

Comments
 (0)