2020-07-05, 19:48:42
Hi Bokor,
I haven't tested the plugin, but just looking at the code it can impossibly work:
I haven't tested the plugin, but just looking at the code it can impossibly work:
$customcss_data
is set onlyif (isset($_POST['submit']))
so the initial render will always fail with Uncaught TypeError: cannot read property 'customcss_content' of null.
- The window.onload script, you can't be sure it is executed if the document is already loaded by then. You should use:
Code:
if (document.readyState === 'complete') { /* code */ }
else { window.onload = function() { /* code */ } }