From a3c4d721251ae473810a8d02b9d14f80e49d560f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 18 Mar 2024 21:49:45 +0100 Subject: [PATCH] [theme] cleanup distration #813 --- static/js/theme.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/theme.js b/static/js/theme.js index c6ba5f3d76..71944cb070 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -634,12 +634,12 @@ function initCodeClipboard(){ }); if( inTable ){ var table = code.parentNode.parentNode.parentNode.parentNode.parentNode; - table.dataset[ 'code' ] = text; + table.dataset.code = text; table.parentNode.insertBefore( button, table.nextSibling ); } else if( inPre ){ var pre = code.parentNode; - pre.dataset[ 'code' ] = text; + pre.dataset.code = text; var p = pre.parentNode; // indented code blocks are missing the div while( p != document && ( p.tagName.toLowerCase() != 'div' || !p.classList.contains( 'highlight' ) ) ){ @@ -656,7 +656,7 @@ function initCodeClipboard(){ pre.parentNode.insertBefore( button, pre.nextSibling ); } else{ - code.dataset[ 'code' ] = text; + code.dataset.code = text; code.parentNode.insertBefore( button, code.nextSibling ); } }