UI Scripts with the console.log debugging method
Impact area
Performance
Severity
Medium
Affected element
UI Scripts
Rule ID
SN-0154
Impact
The client-side function console.log
could cause errors in certain browser versions
Remediation
Replace console.log()
calls with jslog
. The benefits of jslog
are that you have to open the JavaScript Debugger Window to view the output, it is compatible with all browsers, and can be left in production since only administrators can open the window.
Time to fix
5 min
What's here