16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
// mirrorBox.js
|
|
window.onload = function() {
|
|
openEventBridge(function () {
|
|
EventBridge.scriptEventReceived.connect(function (message) {
|
|
|
|
console.log("Message Received in window: " + message)
|
|
// update the stats on the window
|
|
});
|
|
});
|
|
};
|
|
|
|
function updateValues() {
|
|
var side = $('#property-side').val();
|
|
EventBridge.emitWebEvent(side);
|
|
};
|
|
|