mirror of https://github.com/onweru/compose.git

weru
02.52.2021 43017287e2a18177b1b0bbde65f695f16c5b984b
add conditional

Signed-off-by: weru <fromweru@gmail.com>
1 files modified
2 ■■■■■ changed files
assets/js/code.js 2 ●●●●● patch | view | raw | blame | history
assets/js/code.js
@@ -158,12 +158,14 @@
}
function toggleLineNumbers(elems) {
  if(elems) {
  elems.forEach(function (elem, index) {
    // mark the code element when there are no lines
    modifyClass(elem, 'pre_nolines')
  });
  restrainCodeBlockHeight(elems);
}
}
function toggleLineWrap(elem) {
  modifyClass(elem, 'pre_wrap');