// Keeps the widget closed after switching pages: sessionStorage.setItem('ft-widget-state', 'close');