Files

19 lines
575 B
JavaScript

import { LOGIN_TRANSITION_KEY, clearRecipesBootOverlay } from "/static/js/wesp-nav-preload.js";
function hasLoginTransition() {
try {
const raw = sessionStorage.getItem(LOGIN_TRANSITION_KEY);
if (!raw) return false;
const parsed = JSON.parse(raw);
return Boolean(parsed?.storedAt);
} catch {
return false;
}
}
/** После входа — без полноэкранного логотипа, только page-enter на /recipes. */
export function initRecipesBootOverlay() {
if (!hasLoginTransition()) return;
clearRecipesBootOverlay();
}