fix: move the setup dropdown to the callback because ot exists at that point (#19803)
This commit is contained in:
parent
963eea8126
commit
03905ce9cf
1 changed files with 2 additions and 1 deletions
|
|
@ -100,6 +100,7 @@ if (!document.getElementById('featured-story-marker')) {
|
|||
const callback = () => {
|
||||
initializeDisplayAdVisibility();
|
||||
observeDisplayAds();
|
||||
setupDisplayAdDropdown();
|
||||
};
|
||||
|
||||
renderFeed(feedTimeFrame, callback);
|
||||
|
|
@ -121,6 +122,7 @@ if (!document.getElementById('featured-story-marker')) {
|
|||
const callback = () => {
|
||||
initializeDisplayAdVisibility();
|
||||
observeDisplayAds();
|
||||
setupDisplayAdDropdown();
|
||||
};
|
||||
|
||||
renderFeed(changedFeedTimeFrame, callback);
|
||||
|
|
@ -144,5 +146,4 @@ InstantClick.on('change', () => {
|
|||
});
|
||||
InstantClick.init();
|
||||
|
||||
setupDisplayAdDropdown();
|
||||
trackCreateAccountClicks('sidebar-wrapper-left');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue