In some situations you might want to take full control over showing or hiding the Gleap widget. This can be achieved with the following methods.
If you want to reset the route in the widget just add Gleap.close(true);
It’s possible to request the widget open status with the following method.
const isOpened = Gleap.isOpened();