I would like to use my logo to the panel that i’m building in an extension.
I have a file “mylogo.png” in the public directory of my extension project. I use this code to define the panel.
class MyPanel extends Panel {
private viewport = new Viewport(this.client);
constructor(client: EditorClient) {
super(client, {
title: 'My Panel',
content: 'Hello this is my panel',
iconUrl: 'mylogo.png',
location: PanelLocation.RightDock,
});
}
The mylogo icon is not displayed and it is replace by an unknown image:
![](https://uploads-us-west-2.insided.com/lucid-us/attachment/62fcef28-b0c8-4f77-9b92-8981dacb5922.png)
What i’m doing wrong?