Skip to content

Commit

Permalink
Merge branch 'develop' into feature/popup-option-details
Browse files Browse the repository at this point in the history
  • Loading branch information
thePeras authored Nov 28, 2024
2 parents 3b6e49f + db9b38d commit e9ed77e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content-scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ const init = async (): Promise<void> => {
// TODO (luisd): make a better mechanism for functions that depend on previous
// steps and might be async
await rememberLogin(data);
await new Promise<void>((resolve) => {
if (document.readyState === "complete") {
document.getElementsByTagName("html")[0].style.display = "block";
resolve();
} else {
window.addEventListener("load", () => {
document.getElementsByTagName("html")[0].style.display =
"block";
resolve();
});
}
});
};

init();
3 changes: 3 additions & 0 deletions css/loadPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
html {
display: none;
}
1 change: 1 addition & 0 deletions manifest/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"run_at": "document_start",
"matches": ["https://sigarra.up.pt/feup/*"],
"css": [
"css/loadPage.css",
"css/components.css",
"css/simpler.css",
"css/custom.css",
Expand Down

0 comments on commit e9ed77e

Please sign in to comment.