Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created Jul 5, 2018
Embed
What would you like to do?
// メッセージ送信
const channel = new MessageChannel();
navigator.serviceWorker.controller
.postMessage('Hello, world', [channel.port2]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment