mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 23:02:53 +01:00
refactor: remove unused props from components and improve error handling in about page (#385)
This commit is contained in:
committed by
GitHub
parent
c8142d0ac5
commit
7ea2f7f40f
@@ -208,9 +208,7 @@ import {
|
||||
BANNER_HEIGHT,
|
||||
BANNER_HEIGHT_HOME,
|
||||
BANNER_HEIGHT_EXTEND,
|
||||
MAIN_PANEL_OVERLAPS_BANNER_HEIGHT,
|
||||
PAGE_WIDTH
|
||||
} from "../constants/constants";
|
||||
MAIN_PANEL_OVERLAPS_BANNER_HEIGHT} from "../constants/constants";
|
||||
|
||||
/* Preload fonts */
|
||||
// (async function() {
|
||||
@@ -405,7 +403,7 @@ const setup = () => {
|
||||
heightExtend.classList.remove('hidden')
|
||||
}
|
||||
});
|
||||
window.swup.hooks.on('visit:end', (visit: {to: {url: string}}) => {
|
||||
window.swup.hooks.on('visit:end', (_visit: {to: {url: string}}) => {
|
||||
setTimeout(() => {
|
||||
const heightExtend = document.getElementById('page-height-extend')
|
||||
if (heightExtend) {
|
||||
|
||||
Reference in New Issue
Block a user