I want to trigger a main.js function after the background sync completed.
const bgSyncPlugin = new workbox.backgroundSync.Plugin(\'uploadQueue\', { maxRetenti