Add safe navigation to billboard.js conditionals (#20769)
This commit is contained in:
parent
f572275c9d
commit
a22172ec20
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ async function generateBillboard(element) {
|
|||
try {
|
||||
// When context is digest we don't show this billboard
|
||||
// This is a hardcoded feature which should become more dynamic later.
|
||||
if (asyncUrl.includes('post_fixed_bottom') && currentParams.includes('context=digest')) {
|
||||
if (asyncUrl?.includes('post_fixed_bottom') && currentParams?.includes('context=digest')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue