Skip to content

Commit 893f401

Browse files
fix. plugin info page
1 parent daa61fa commit 893f401

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/pages/plugin/plugin.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,12 @@ export default async function PluginInclude(
101101
}
102102
}
103103

104-
const iconUrl = await helpers.toInternalUri(
104+
const iconUrl = Capacitor.convertFileSrc(
105105
Url.join(PLUGIN_DIR, id, installedPlugin.icon),
106106
);
107-
const iconData = await fsOperation(iconUrl).readFile();
108-
const icon = URL.createObjectURL(
109-
new Blob([iconData], { type: "image/png" }),
110-
);
111107
plugin = {
112108
id,
113-
icon,
109+
iconUrl,
114110
name: installedPlugin.name,
115111
version: installedPlugin.version,
116112
author: author.name,

0 commit comments

Comments
 (0)