mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
Fix MS17495: Initially wire sendMessage to ignore in appUi module
This commit is contained in:
parent
16b483b338
commit
e00dbcecc6
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,7 @@ function AppUi(properties) {
|
|||
icon: that.normalButton,
|
||||
activeIcon: that.activeButton,
|
||||
text: that.buttonName,
|
||||
sortOrder: that.sortOrder
|
||||
sortOrder: that.sortOrder || undefined
|
||||
});
|
||||
that.ignore = function ignore() { };
|
||||
|
||||
|
@ -126,6 +126,7 @@ function AppUi(properties) {
|
|||
// (Although injected javascript still has to use JSON.stringify/JSON.parse.)
|
||||
that.sendToHtml = function (messageObject) { that.tablet.emitScriptEvent(JSON.stringify(messageObject)); };
|
||||
that.fromHtml = function (messageString) { that.onMessage(JSON.parse(messageString)); };
|
||||
that.sendMessage = that.ignore;
|
||||
that.wireEventBridge = function wireEventBridge(on) {
|
||||
// Uniquivocally sets that.sendMessage(messageObject) to do the right thing.
|
||||
// Sets hasEventBridge and wires onMessage to eventSignal as appropriate, IFF onMessage defined.
|
||||
|
|
Loading…
Reference in a new issue