Keep style for newer Firefox browsers

This commit is contained in:
Glitchii 2021-07-07 00:55:47 +01:00
parent 33a798cc44
commit 336b6f1f50

View file

@ -664,8 +664,6 @@ window.onload = () => {
document.querySelector('.timeText').innerText = tstamp(); document.querySelector('.timeText').innerText = tstamp();
document.querySelectorAll('.markup pre > code').forEach((block) => hljs.highlightBlock(block)); document.querySelectorAll('.markup pre > code').forEach((block) => hljs.highlightBlock(block));
!window.navigator.userAgent.match(/Firefox\/[\d\.]+$/g) && // Firefox pushes the text up a little
document.querySelector('.botText').style.removeProperty('top');
document.querySelector('.opt.gui').addEventListener('click', () => { document.querySelector('.opt.gui').addEventListener('click', () => {
json = JSON.parse(editor.getValue() || '{}'); json = JSON.parse(editor.getValue() || '{}');