Update how content display is changed
This commit is contained in:
parent
97f7df3302
commit
d512c111f6
@ -30,7 +30,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="error-orphaned">
|
||||
<div id="error-orphaned" hidden>
|
||||
<div class="entry">
|
||||
<h1>Yomichan Updated!</h1>
|
||||
<p>
|
||||
|
@ -62,10 +62,6 @@ ol, ul {
|
||||
height: 2.28571428em; /* 14px => 32px */
|
||||
}
|
||||
|
||||
#error-orphaned {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
@ -456,15 +456,14 @@ class Display {
|
||||
}
|
||||
|
||||
setContentOrphaned() {
|
||||
const definitions = document.querySelector('#definitions');
|
||||
const errorOrphaned = document.querySelector('#error-orphaned');
|
||||
|
||||
if (definitions !== null) {
|
||||
definitions.style.setProperty('display', 'none', 'important');
|
||||
if (this.container !== null) {
|
||||
this.container.hidden = true;
|
||||
}
|
||||
|
||||
if (errorOrphaned !== null) {
|
||||
errorOrphaned.style.setProperty('display', 'block', 'important');
|
||||
errorOrphaned.hidden = false;
|
||||
}
|
||||
|
||||
this.updateNavigation(null, null);
|
||||
|
Loading…
Reference in New Issue
Block a user