From b460ccc21485f720d06905484e67c5e787231756 Mon Sep 17 00:00:00 2001 From: Glenn Goossens <48956933+glgoose@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:39:13 +0200 Subject: [PATCH] publisher-uaproxy-banner: no TypeError when /status fails, the bar says uaproxyd is not running Co-Authored-By: Claude Sonnet 5.5 --- .../publisher-uaproxy-banner/publisher-uaproxy-banner.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publisher-uaproxy-banner/publisher-uaproxy-banner.user.js b/scripts/publisher-uaproxy-banner/publisher-uaproxy-banner.user.js index 9b6b717..f618599 100644 --- a/scripts/publisher-uaproxy-banner/publisher-uaproxy-banner.user.js +++ b/scripts/publisher-uaproxy-banner/publisher-uaproxy-banner.user.js @@ -85,7 +85,7 @@ function render(s) { var state = s && s.state; - if (state === 'up' || (s.on_ua && state === 'down')) { hide(); return; } + if (state === 'up' || (s && s.on_ua && state === 'down')) { hide(); return; } if (!bar) build(); var base = 'UA proxy down: this page loaded without UA access, so a Zotero save gets no PDF.'; if (!s) {