Skip to content

Commit

Permalink
try reloading the CSS after the page is rendered to overload the HCM css
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Apr 8, 2022
1 parent 26264e5 commit 742fe39
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/routerconsole/jsp/js/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function ajaxDone(url, target, refresh) {
}
}

document.addEventListener("DOMContentLoaded", function() {
function forceColorAdjustNone() {
//var file = location.pathname.split("/").pop();
file = document.getElementById("pagestyle").href

Expand All @@ -66,6 +66,16 @@ document.addEventListener("DOMContentLoaded", function() {
link.media = "screen,print";

document.getElementsByTagName("head")[0].appendChild(link);
})
}

if (document.readyState == 'complete') {
forceColorAdjustNone();
} else {
document.onreadystatechange = function() {
if (document.readyState === "complete") {
forceColorAdjustNone();
}
}
}

/* @license-end */

0 comments on commit 742fe39

Please sign in to comment.