io-monad / textlint-chrome-extension

textlint Chrome Extension
https://chrome.google.com/webstore/detail/textlint-proofreader/hdongmdneapmhfblomidbafplpanpdmm
GNU General Public License v3.0
50 stars 9 forks source link

Refactor entire app using SandboxSender/Receiver in chrome-util #35

Open io-monad opened 8 years ago

io-monad commented 8 years ago

By using SandboxSender and SandboxReceiver in @io-monad/chrome-util which is introduced in #34 , we can send messages to the sandbox without indirectly callbacks via returning event.source.postMessage.

This change would make the message flow in the extension much simpler, and reduces lots of codes. So we want to refactor the entire app by using chrome-util.