Closed MapleShaw closed 2 years ago
Change the IDs so you only initialize it once. Use different initializations for mobile than for desktop.
Something like:
if(inDesktop){
new fullpage('#fullpage-desktop', {...});
}
else{
new fullpage('#fullpage-mobile', {...});
}
@alvarotrigo appreciate for reply, in that way, does it means I can not initialize in this way?
You have to make sure to only initialize one instance of fullPage.js. And at the moment you are initializing two as both have the same ID.
Got it, thanks so much!
Description
I use two DIV to handle the responsive between desktop and mobile, so there are two in different components, but in the same page.
It will cause the error "Fullpage.js can only be initialized once and you are doing it multiple times!"
Is there any way to pass the MAIN_SELECTOR by customization, to cover the default value "fullpage".