import wixWindow from 'wix-window';
let fadeOptions = {
"duration": 2000,
"delay": 1000
};
export function iconButton1_click(event) {
//Add your code for this event here:
let notificationText = $w('#text122');
console.info('in listener');
console.info(wixWindow);
wixWindow.openLightBox('Notifications', {});
}
I have a button called iconButton1. This listener function is attached to it. The function get called but when it reaches the line wixWindow.openLightBox(‘Notifications’, {}); then it shows this weird error.
This code is in the Site Code section.
The button is in the site header.
The lightbox name is correct. I am using the name, not the id.
Has anyone seen this error before?