Thank you! I really appreciate that as that expedited identifying what was occurring and allowed me to find the issue.
While the fix in version 1.6.2 did fix mistakenly matching file paths that contained two slashes as comments, like in the images provided above, this different console error isn’t actually related to an issue with Cache Enabler itself. Instead, it’s related to the actual formatting of your inline JavaScript itself and when it’s minified it no longer works (https://i.imgur.com/nqhc75a.png). This issue is in the findSVGElements()
function:
function findSVGElements()
{
var elms = document.querySelectorAll(".bfd-svg");
for (var i = 0; i < elms.length; i++)
{
var subdoc = getSubDocument(elms[i])
if (subdoc)
subdoc.getElementById("bfd-svg-color").setAttribute("fill", "#ffffff");
}
}
The var subdoc = getSubDocument(elms[i])
should have a closing semicolon ;
to indicate the end of line because when minified this statement, along with the rest of the JavaScript, will be on one line, for example:
function findSVGElements()
{
var elms = document.querySelectorAll(".bfd-svg");
for (var i = 0; i < elms.length; i++)
{
var subdoc = getSubDocument(elms[i]);
if (subdoc)
subdoc.getElementById("bfd-svg-color").setAttribute("fill", "#ffffff");
}
}
-
This reply was modified 3 years, 11 months ago by Anonymous User 16850768. Reason: clarity