[feature-748]Perspective Favicon

Soo i got something for you :mage:

Create these files (and injectables folder) (depending on install folder ofc)

"C:\Program Files\Inductive Automation\Ignition\data\modules\com.inductiveautomation.perspective\injectables\head_bottom.txt"

"C:\Program Files\Inductive Automation\Ignition\webserver\webapps\main\newFavicon.ico"

In the head_bottom.txt put this:

<script>
const oldLinks = document.querySelectorAll('link[rel*="icon"]');
oldLinks.forEach(e => {e.href = '/newFavicon.ico';});
</script>

Your icon can be whatever (pngs and stuff should be oke too i think)

Restart gateway and Restart browser

Special thanks too: ive seen this post a while but i forgot this favicon post xd

You could use different icons for each project like this,

<script>
const oldLinks = document.querySelectorAll('link[rel*="icon"]');
const projectName = location.pathname.split('/')[4]
oldLinks.forEach(e => {e.href = `/${projectName}.ico`;});
</script>
6 Likes