Skip to content

Instantly share code, notes, and snippets.

@gterzian
Last active April 8, 2020 14:30
Show Gist options
  • Save gterzian/56aa2ffb72090aeed4e0774865319a60 to your computer and use it in GitHub Desktop.
Save gterzian/56aa2ffb72090aeed4e0774865319a60 to your computer and use it in GitHub Desktop.
/// Content process entry point, contains init of service worker manager.
pub fn run_content_process(token: String) {
// Same stuff as before here...
// send the required channels to the service worker manager
let sw_senders = unprivileged_content.swmanager_senders();
script::init_service_workers(sw_senders);
unprivileged_content.start_all();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment