Closed hugo13122000 closed 4 years ago
I did some research on the web although I don't code JS, a stack overflow thread allowed me to add a line fixing the error :
i just added after line 71 :
if (elem === null) return;
function get_column_color(col_num) { let css_class_name = '.syntax--rainbow' + (col_num % num_rainbow_colors + 1); let elem = document.querySelector(css_class_name); if (elem === null) return; let style = getComputedStyle(elem); return style.color; }
it is now working properly
EDIT : The error was linked to adding coma when there's no header yet however, this fix allows you to do so without getting an error
Originally posted by @hugo13122000 in https://github.com/mechatroner/atom-rainbow-csv/issues/7#issuecomment-557181392
I did some research on the web although I don't code JS, a stack overflow thread allowed me to add a line fixing the error :
i just added after line 71 :
it is now working properly
EDIT : The error was linked to adding coma when there's no header yet however, this fix allows you to do so without getting an error
Originally posted by @hugo13122000 in https://github.com/mechatroner/atom-rainbow-csv/issues/7#issuecomment-557181392