Hi everyone.
I have a problem with menu on wix, at last time it work well but at now when click on menu, the url in browser is change but browser not redirect.
I check console of browser and see an error of file codeEmbed.js in line 85.
This is my site: https://www.ebee.academy/
Please help me, what happen with js of wix.
P/s: I searched the same menu for errors but found nothing like me.
I can see some issues in your code (not necessarily related to this error).
First you didn’t put the import wixSite from ‘wix-site’; at the beginning of your code (and import’s must be at the top. And any way it looks you don’t use it so why having it at all?).
Second, on your mobile view you don’t have the $w(“#boxBait”) element at all, but yet you’re trying to apply the .show() method to it. That brings to an error and probably completely stops the code.
Hi J.D.
Thanks for your help. I work follow your guide but don’t fix that error.
First: I remove import wixSite from ‘wix-site’;
Second: I put on top import wixWindow from ‘wix-window’ ; and use if (wixWindow.formFactor !== “Mobile” ){ } for check if bowser of mobile device is not run.
I see error at function onUrlChange(embeds, pageId, dyingPageId, windowObj) in codeEmbed.js:220 . code run to removeNodes(context, nodesToDelete[location]) then call function removeNodes(context, nodeListToDelete) and crash at nodeListToDelete.length .
Please help me if your find any problem.
P/s: I see anthor post have error same me but unsolved