Skip to content
Permalink
Browse files Browse the repository at this point in the history
Use canEdit['System'] and value of new ZM_LOG_INJECT to disable attem…
…pting to inject javascript errors into zm logs
  • Loading branch information
Isaac Connor committed Oct 6, 2022
1 parent 73d9f24 commit cb3fc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/logger.js
Expand Up @@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
$j.ajaxSetup({timeout: AJAX_TIMEOUT});
var reportLogs = true;
const reportLogs = (ZM_LOG_INJECT !== '0' || canEdit["System"]);

if ( !window.console ) {
window.console =
Expand Down

0 comments on commit cb3fc59

Please sign in to comment.