Wix Code hidding actionBar

I just wrote this code looking for my action bar of the mobile site during weekends. Everything went ok with the day but the actionBar never hid.
Does anyone know how can I control de actionBar If It is possible?
I let my code below:

import wixWindow from ‘wix-window’;
$w.onReady(function () {

var workHours = new Date(); 
var workDays = new Date(); 
var days = workDays.getDay(); 
var hours = workHours.getHours(); 

  if (wixWindow.formFactor === "Mobile") { 
     if (days >= 1 && days <=5 ) 


Thanks in advance for you help.