I have a favicon.ico file how do I use this please.
Couldn't find documentation about it. Sure it can be done with resource.
You also may hard code it all:
Create a subfolder Images
in your project root, then copy your icon file into it.
Add this icon file to the project (Shift+F11
), and then open your main html file, usually index.html, comment other default favicon references, and add somewhere between <head>
& </head>
:
<link rel="icon" type="image/x-icon" href="/Images/youricon.ico">
TMS generates this in the projects main HTML:
<link rel="icon" href="data:;base64,=">
I suppose it's there for using favicon from a resource.
You must comment it in order to make the hard coding method work.
It also has <link $(FavIcon)/>
. I also commented it.
Seems that you can configure it through a $FavIcon variable.
I can barely remember that in the past it was done just by copying favicon.ico to root folder. I really don't know if nowadays it would work on all browsers. Sorry, I'm a VCL guy!
You'd add a reference to it to the project HTML file