Fix style blink
This commit is contained in:
parent
3125f96ca6
commit
cebd40cd02
2 changed files with 5 additions and 5 deletions
|
|
@ -49,10 +49,9 @@ const handleTextToggle = () => {
|
|||
|
||||
const isInsidePortfolio =
|
||||
new URLSearchParams(location.search).get('portfolioView') !== null;
|
||||
if (isInsidePortfolio) {
|
||||
toggleButton.style.visibility = 'hidden';
|
||||
logo.style.visibility = 'hidden';
|
||||
} else {
|
||||
if (!isInsidePortfolio) {
|
||||
toggleButton.style.visibility = 'visible';
|
||||
logo.style.visibility = 'visible';
|
||||
toggleButton.addEventListener('click', handleTextToggle);
|
||||
}
|
||||
handleTextToggle();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue