Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom CSS
#3
Hi Bokor,

I haven't tested the plugin, but just looking at the code it can impossibly work:
  • $customcss_data is set only if (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 */  } }
Reply


Messages In This Thread
Custom CSS - by bokor.pavol - 2020-06-25, 21:14:43
RE: Custom CSS - by Felix - 2020-06-26, 23:15:38
RE: Custom CSS - by Tyblitz - 2020-07-05, 19:48:42



Users browsing this thread: 1 Guest(s)