Being in double quotes. You need to back-slash the double quotes in the line don't you?
-----Original Message-----
From: Xymon <xymon-bounces at xymon.com> On Behalf Of John Thurston
Sent: Tuesday, June 19, 2018 2:56 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Chrome cookie deprecations (fix/workaround)
This works well, Erik. Thank you! I offer the following, which I think
makes it even better.
Rather than stuffing this directly into the stdnormal_footer template
file, go to xymonserver.cfg and adjust the value of XYMONBODYFOOTER.
XYMONBODYFOOTER="<script type="text/javascript"> var metas = document.getElementsByTagName('meta'); for (var i=0; i<metas.length; i++) { var type = metas[i].getAttribute("HTTP-EQUIV"); if (type == "Set-Cookie") { var prop = metas[i].getAttribute("CONTENT"); document.cookie = prop; } } </script>" # HTML inserted at the bottom of all webpages.
I already had special stuff in my footer, so I appended (inside the
double quotes) the new text to what was already there.
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.