Closed claudiuj closed 1 week ago
@claudiuj, this is due to prototype modifying the standard Array.from
function, see https://github.com/prototypejs/prototype/issues/338.
You can restore the default Array.from
as suggested in https://github.com/prototypejs/prototype/issues/362:
<script>
const iframe = document.body.appendChild(
document.createElement('iframe')
);
const iframeArray = iframe.contentWindow.Array;
document.body.removeChild(iframe);
Array.from = iframeArray.from;
</script>
<script type="module" src="cookieconsent-config.js"></script>
This might break other things in your page though.
it is working;
Thank you.
Expected Behavior
I know that Prototype is an old framework but it is still used by Magento 1.9.
Current Behavior
When I use cookieconsent with Prototype (the latest version), the selection saved in the cookie is empty (the categories array is empty)
Steps to reproduce
Create a config file using GUI interface
Create a simple HTML file that includes Prototype framework (I've attached a screenshot of the source
)
Run HTML file in browser
Set cookie preference
Check the cookie value (categories array)
Proposed fix or additional info.
No response
Version
3.0.1
On which browser do you see the issue?
No response