NetTalk Central

Author Topic: icon.png cannot be found  (Read 1923 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1848
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
icon.png cannot be found
« on: August 25, 2020, 09:15:15 AM »
Im gettin this error on the browser.
I can see
<link rel="icon" sizes="192x192" href="icon.png"/>
on the source
but I cant find icon.png in my code
-----------
Regards
Alberto

Jane

  • Sr. Member
  • ****
  • Posts: 354
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: icon.png cannot be found
« Reply #1 on: August 25, 2020, 06:10:20 PM »
Look in the NetWebServerWorkerBase.CommonHeader method in netweb.clw.

Alberto

  • Hero Member
  • *****
  • Posts: 1848
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: icon.png cannot be found
« Reply #2 on: August 26, 2020, 03:45:11 AM »
Thanks Jane, Ive found:

Code: [Select]
  If self.site.PinchToZoom = false
    str.append('<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><13,10>')
    str.append('<link rel="icon" sizes="192x192" href="icon.png"/><13,10>')
    str.append('<link rel="apple-touch-icon" href="apple-touch-icon.png"/><13,10>')
  end

Weird because Its a simple web server.
And today Im not having the error.
May be because I was testing some JS functions... dont know...

Thanks again
« Last Edit: August 26, 2020, 03:54:15 AM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11186
    • View Profile
Re: icon.png cannot be found
« Reply #3 on: August 27, 2020, 11:31:22 PM »
easiest way to make it go away is to make an icon.png for your web folder.