From 65e5e9541730ee41d1aef7cb3ff22acb2d84cfd6 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 9 Aug 2021 03:02:59 +1200 Subject: [PATCH] Maybe fix empty online/offline bug --- html/src/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/html/src/app.js b/html/src/app.js index 6b777136..99c392fb 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -5618,7 +5618,13 @@ speechSynthesis.getVoices(); } var location = ''; var $location_at = ''; - if ((typeof ref !== 'undefined') && + if ((typeof ctx.ref !== 'undefined') && + (typeof ctx.ref.location !== 'undefined')) { + var { location, $location_at } = ctx.ref; + } + if (((location === '') || + (location === 'offline')) && + (typeof ref !== 'undefined') && (typeof ref.location !== 'undefined')) { var { location, $location_at } = ref; }