Code is not working - Issue with a pop up lightbox

  📷             **Sonia**                                                              August 20, 2019 9:28 PM (UTC-04:00)                                                            **Code is not working - Issue with a pop up lightbox**        

I have add some code so the subscribers pop up only appear once per user, no matter how many sessions or pages visits.
Here is the code that I added for the tab ‘page’ and the tab ‘site’
import {local} from ‘wix-storage’;
import wixWindow from ‘wix-window’;
$w.onReady(function () {
// flag is not found
if(!local.getItem(“firstTimePopupShown”)) {
// open popup
wixWindow.openLightbox(“SubscribeBW”);
// set flag for future visits
local.setItem(“firstTimePopupShown”, “yes”);
}
} );
Is there anything wrong with my code? A client told me that the pop up is constantly popping up in every page, even on the same session.
I need urgently some help here!
thank you, Sonia

Make sure you don’t have the Lightbox set to trigger automatically.

Thank you very much for your help, code is now working! Apparently I missed that little detail, oops! Sorry for my delayed reply.
Sonia.Sonia