top of page
bottom of page
import wixLocation from 'wix-location'; $w.onReady(function() { $w("#gymcatch").onMessage(function(event) { if (!event.data || !event.data.gymcatch) {return;} if (event.data.ready) { $w("#gymcatch").postMessage({wix:true, url:wixLocation.url, path: wixLocation.query.path}); } if (event.data.path) { wixLocation.to(`/${wixLocation.path.join('/')}?path=${event.data.path}`); } }); });