Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
14 lines
337 B
JavaScript
Executable file
14 lines
337 B
JavaScript
Executable file
'use strict';
|
|
|
|
window.addEventListener('load', function() {
|
|
navigator.mozSetMessageHandler("connection", function(connectionRequest) {
|
|
if (connectionRequest.keyword !== "test") {
|
|
return;
|
|
}
|
|
|
|
var port = connectionRequest.port;
|
|
port.onmessage = function(event) {
|
|
port.postMessage(event.data);
|
|
};
|
|
});
|
|
});
|