Commit c3532685 authored by Georgi Mateev's avatar Georgi Mateev
Browse files

[TASK] Added comment

parent 0a98db94
......@@ -80,7 +80,8 @@ class AddCookieOptinJsAndCss implements SingletonInterface {
return '';
}
}
// we decode and encode again to remove the PRETTY_PRINT when rendering
// we decode and encode again to remove the PRETTY_PRINT when rendering for better performance on the frontend
// for easier debugging, you can check the generated file in the fileadmin
// see https://gitlab.sgalinski.de/typo3/sg_cookie_optin/-/issues/118
return '<script id="cookieOptinData" type="application/json">' . json_encode(json_decode(file_get_contents($sitePath . $jsonFile))) .
'</script><script src="/' . $file . '" type="text/javascript" data-ignore="1"></script>';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment