Fix #1743: hide new tab page better

This commit is contained in:
Oliver Blanthorn 2021-05-06 18:57:20 +02:00
parent cb67f9955e
commit 12a07248d2
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 8 additions and 7 deletions

View file

@ -205,9 +205,8 @@ if (
if (newtab) {
excmds.open_quiet(newtab)
} else {
document.body.style.height = "100%"
document.body.style.opacity = "1"
document.body.style.overflow = "auto"
const content = document.getElementById("trinewtab")
content.style.display = "block"
document.title = "Tridactyl Top Tips & New Tab Page"
}
}

View file

@ -9,10 +9,12 @@
<link rel="stylesheet" href="css/viewsource.css">
<link rel="shortcut icon" href="logo/Tridactyl_64px.png">
</head>
<body style="opacity: 0; height: 0px; overflow: hidden;">
<img src="logo/Tridactyl_100px.png" alt="Tridactyl logo">
<h1 id="tridactyl-version-number">Tridactyl</h1>
REPLACETHIS
<body>
<div id="trinewtab" style="display: none;">
<img src="logo/Tridactyl_100px.png" alt="Tridactyl logo">
<h1 id="tridactyl-version-number">Tridactyl</h1>
REPLACETHIS
</div>
</body>
<script src="../content.js"></script>
<script src="../newtab.js"></script>