An open API service indexing awesome lists of open source software.

https://github.com/gingerbeardman/clickclack

Proof of concept of message passing between two Safari extensions.
https://github.com/gingerbeardman/clickclack

Last synced: about 1 year ago
JSON representation

Proof of concept of message passing between two Safari extensions.

Awesome Lists containing this project

README

          

This is a simple demonstration of the use of [`window.postMessage`](https://developer.mozilla.org/en/DOM/window.postMessage) to pass messages between two separate Safari extensions. There are a pair of extensions here, named Click [(download)](https://github.com/downloads/canisbos/ClickClack/Click.safariextz) and Clack [(download)](https://github.com/downloads/canisbos/ClickClack/Clack.safariextz). Each extension has a toolbar button. Clicking one extension's toolbar button will cause the other extension to flip its toolbar button image.

Note that message passing will fail if there is not a valid document in the current tab.