From 636f853e64d97a22824ffb4f376db09375d9b472 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 21 Jul 2022 13:50:47 -0400 Subject: [PATCH] fix: emit console warning if headerEl not found during updatePanelOffset --- public/persona.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/persona.js b/public/persona.js index d3699ed..ddc6580 100644 --- a/public/persona.js +++ b/public/persona.js @@ -16,6 +16,7 @@ $(document).ready(function () { const headerEl = document.getElementById('header-menu'); if (!headerEl) { + console.warn('[persona/updatePanelOffset] Could not find #header-menu, panel offset unchanged.'); return; }