BBB AppShell — BBB Global Network (MY)

BBB — AppShell (PWA Hybrid)

This AppShell acts as the installable application layer for bbb-official.com. It is designed to sit on top of your WordPress site and provide PWA features (installable, offline caching, manifest).

Tip: upload this file to /appshell/index.html and link to it from your homepage or include via iframe as AppShell.

{ “name”: “BBB WOLF — Investor Edition”, “short_name”: “BBB WOLF”, “start_url”: “/wolf/?utm_source=appshell”, “display”: “standalone”, “background_color”: “#070707”, “theme_color”: “#d4af37”, “description”: “BBB WOLF Investor Edition — installable app experience for investors and ambassadors.”, “icons”: [ {“src”: “/wolf/icons/icon-192.png”, “sizes”:”192×192″, “type”:”image/png”}, {“src”: “/wolf/icons/icon-512.png”, “sizes”:”512×512″, “type”:”image/png”} ], “shortcuts”: [ {“name”:”Investor Zone”,”url”:”/wolf”,”icons”:[{“src”:”/wolf/icons/icon-192.png”,”sizes”:”192×192″}]}, {“name”:”Ambassador”,”url”:”/ambassador”,”icons”:[{“src”:”/wolf/icons/icon-192.png”,”sizes”:”192×192″}]} ] }const CACHE_NAME = ‘bbb-pwa-cache-v1’; const CORE = [ ‘/wolf/’, ‘/wolf/wolf_index.html’, ‘/wolf/BBB_WOLF_INVESTOR_DECK.pdf’, ‘/wolf/manifest.json’ ];self.addEventListener(‘install’, (evt) => { evt.waitUntil(caches.open(CACHE_NAME).then(cache => cache.addAll(CORE))); self.skipWaiting(); });self.addEventListener(‘activate’, (evt) => { evt.waitUntil(self.clients.claim()); });self.addEventListener(‘fetch’, (evt) => { if (evt.request.mode === ‘navigate’ || (evt.request.method === ‘GET’ && evt.request.headers.get(‘accept’)?.includes(‘text/html’))) { evt.respondWith(fetch(evt.request).catch(()=>caches.match(‘/wolf/wolf_index.html’))); return; } evt.respondWith(caches.match(evt.request).then(resp=>resp||fetch(evt.request))); });
Translate »
滚动至顶部