-1

I posted a question yesterday and I got a very helpful answer. See question here: Vue - Set different favicon when browser online or offline

It also contains the code.

In my rendered HTML, I am getting <link id="favicon" rel="shortcut icon" type="image/x-icon" href="[object HTMLImageElement]"> when I am suppose the get the link.

How can I get the real link? Please check the code in the link above.

Node Shack
  • 59
  • 6
  • 1
    If you have issues with the answer you were given on an already existing question that you asked yourself, then please handle the issue there, instead of creating am duplicate. – 04FS Jul 02 '19 at 08:41
  • I was unable to comment there. – Node Shack Jul 02 '19 at 08:42
  • 1
    It's not enough to refer to another resource to make your question complete. A question should stand alone. If the other question is deleted/altered, this question will cease to make sense. If your code isn't working, present the non-working code in the question. – spender Jul 02 '19 at 08:42
  • You should always be able to comment on answers to your own question, regardless of reputation points. – 04FS Jul 02 '19 at 08:46

1 Answers1

0
link.href = status ? this.favicons.online.src : this.favicons.offline.src;

I guess, but this should be moved to the original question