CODE NOT WORKING SINCE THIS MORNING
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
import wixWindow from 'wix-window';
$w.onReady(function () {
$w("#SelectHome").hide();
$w("#Selectprofile").hide();
$w("#profilebutton").onClick( (event) =>{
wixWindow.openLightbox("Member Login Bar");
}
if (wixUsers.currentUser.loggedIn) {
$w(“#loginbutton”).hide();
}
else {$w(‘#profilebutton’).hide();
$w(“#SelectHome”).hide();
$w(“#Homebutton”).hide();}
}
);