navigator.serviceWorker.register('/service-worker.js').then(function(registration) { console.log('Service Worker registered with scope:', registration.scope); }).catch(function(error) { console.log('Service Worker registration failed:', error); }); // 监听来自 Service Worker 的消息 navigator.serviceWorker.addEventListener('message', (event) => { const currentSite = event.data.currentSite if (currentSite) { // 将 currentSite 存储到 cookie 中 document.cookie = "current_site="+ currentSite + "; path=/; Secure"//注意这里不需要再次编码,sw已经编码过了 console.log('current_site saved to cookie in index:', currentSite) } });
tripcetera about us

About Tripcetera


We are an online Travel Marketplace. Our convenient booking platform empowers Travelers by connecting them to individual Hosts and corporate partners who offer varied, unique, and quality accommodations, transport and other travel related services.

Book your accommodation and other travel needs with tripcetera.com and enjoy great deals!

Sign up as a Host and list your property or service and let Guests book with you. Join our growing marketplace and sharing community!

tripcetera about us