mirror of
https://github.com/skidoodle/pastebin
synced 2026-04-28 11:17:41 +02:00
fix linecount block
This commit is contained in:
@@ -33,7 +33,6 @@
|
|||||||
|
|
||||||
hljs.highlightElement(code);
|
hljs.highlightElement(code);
|
||||||
|
|
||||||
if (lineCount < 10000) {
|
|
||||||
const lines = code.innerHTML.split(/\r?\n/);
|
const lines = code.innerHTML.split(/\r?\n/);
|
||||||
const fragment = [];
|
const fragment = [];
|
||||||
for (let i = 0; i < lines.length; i++) {
|
for (let i = 0; i < lines.length; i++) {
|
||||||
@@ -50,7 +49,6 @@
|
|||||||
if (target) target.scrollIntoView();
|
if (target) target.scrollIntoView();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
document.addEventListener('keydown', (e) => {
|
document.addEventListener('keydown', (e) => {
|
||||||
if ((e.ctrlKey || e.metaKey) && e.key === 'a') {
|
if ((e.ctrlKey || e.metaKey) && e.key === 'a') {
|
||||||
|
|||||||
Reference in New Issue
Block a user