fix last commit

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-20 20:58:20 +02:00
parent c10342e835
commit 6f28acf4ae
1 changed files with 1 additions and 2 deletions

View File

@ -895,9 +895,8 @@
const detectionDiv = document.querySelector('#detection');
const isAutoDark = getComputedStyle(detectionDiv).backgroundColor != 'rgb(255, 255, 255)';
if (!isAutoDark) {
let element = document.getElementsByClassName('comment-section')
const element = document.getElementsByClassName('comment-section')[0]
if (element) {
element = element[0];
let color = getComputedStyle(element).getPropertyValue('background-color');
color = 'rgba' + color.slice(3,-1) + ', 0.1)'