Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjustWorkbox passing event listener #16

Closed
dominicarrojado opened this issue Oct 20, 2018 · 1 comment
Closed

adjustWorkbox passing event listener #16

dominicarrojado opened this issue Oct 20, 2018 · 1 comment

Comments

@dominicarrojado
Copy link

Hi, am I able to pass something like this to the adjustWorkbox function?

self.addEventListener('message', event => {
      if (!event.data) {
        return;
      }

      switch (event.data) {
        case 'skipWaiting':
          self.skipWaiting();
          break;
        default:
          // NOOP
          break;
      }
});
@arackaf
Copy link
Owner

arackaf commented Oct 21, 2018

No don’t think so - that appears to be code that would run inside of a Service Worker, not code that’s used to configure Workbox.

@arackaf arackaf closed this as completed Oct 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants