mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 11:33:09 -07:00
Fix issues with reloading
This commit is contained in:
parent
232d85379d
commit
ff96f2ae92
2 changed files with 4 additions and 1 deletions
|
@ -328,13 +328,16 @@ function highlightNew(code) {
|
||||||
}
|
}
|
||||||
codes[i].style.removeProperty("background-color");
|
codes[i].style.removeProperty("background-color");
|
||||||
}
|
}
|
||||||
|
|
||||||
const windowWidth = $(document).width();
|
const windowWidth = $(document).width();
|
||||||
|
console.log("Window width: " + windowWidth + " - MaxWidth: " + maxWidth)
|
||||||
if(windowWidth > maxWidth)
|
if(windowWidth > maxWidth)
|
||||||
maxWidth = windowWidth;
|
maxWidth = windowWidth;
|
||||||
|
|
||||||
for (let i = 0; i < codes.length; i++) {
|
for (let i = 0; i < codes.length; i++) {
|
||||||
codes[i].style.width = maxWidth + 'px';
|
codes[i].style.width = maxWidth + 'px';
|
||||||
}
|
}
|
||||||
|
|
||||||
code.style.backgroundColor = "rgba(187, 128, 9, 0.25)";
|
code.style.backgroundColor = "rgba(187, 128, 9, 0.25)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue