Skip to content

Commit 7ba87aa

Browse files
fix. plugin icons in plugin info page
1 parent 893f401 commit 7ba87aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/plugins/item.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default function Item({
2323
downloads,
2424
installed,
2525
}) {
26+
console.log(`ICON ${icon}`)
2627
const authorName = (() => {
2728
const displayName =
2829
typeof author === "object" ? author.name : author || "Unknown";

src/pages/plugins/plugins.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,7 @@ export default function PluginsInclude(updates) {
338338
if (!((updates && updates.includes(id)) || !updates)) return;
339339
const url = Url.join(item.url, "plugin.json");
340340
const plugin = await fsOperation(url).readFile("json");
341-
const iconUrl = getLocalRes(id, plugin.icon);
342-
plugin.icon = await helpers.toInternalUri(iconUrl);
341+
plugin.icon = Capacitor.convertFileSrc(getLocalRes(id, plugin.icon))
343342
plugin.installed = true;
344343
plugins.installed.push(plugin);
345344
if ($list.installed.get(`[data-id="${id}"]`)) return;

0 commit comments

Comments
 (0)