mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Fix #1743: hide new tab page better
This commit is contained in:
parent
cb67f9955e
commit
12a07248d2
2 changed files with 8 additions and 7 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue