Maybe fix empty online/offline bug

This commit is contained in:
Natsumi
2021-08-09 03:02:59 +12:00
parent b326fe601e
commit 65e5e95417

View File

@@ -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;
}