mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:03:35 +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,
|
icon: that.normalButton,
|
||||||
activeIcon: that.activeButton,
|
activeIcon: that.activeButton,
|
||||||
text: that.buttonName,
|
text: that.buttonName,
|
||||||
sortOrder: that.sortOrder
|
sortOrder: that.sortOrder || undefined
|
||||||
});
|
});
|
||||||
that.ignore = function ignore() { };
|
that.ignore = function ignore() { };
|
||||||
|
|
||||||
|
@ -126,6 +126,7 @@ function AppUi(properties) {
|
||||||
// (Although injected javascript still has to use JSON.stringify/JSON.parse.)
|
// (Although injected javascript still has to use JSON.stringify/JSON.parse.)
|
||||||
that.sendToHtml = function (messageObject) { that.tablet.emitScriptEvent(JSON.stringify(messageObject)); };
|
that.sendToHtml = function (messageObject) { that.tablet.emitScriptEvent(JSON.stringify(messageObject)); };
|
||||||
that.fromHtml = function (messageString) { that.onMessage(JSON.parse(messageString)); };
|
that.fromHtml = function (messageString) { that.onMessage(JSON.parse(messageString)); };
|
||||||
|
that.sendMessage = that.ignore;
|
||||||
that.wireEventBridge = function wireEventBridge(on) {
|
that.wireEventBridge = function wireEventBridge(on) {
|
||||||
// Uniquivocally sets that.sendMessage(messageObject) to do the right thing.
|
// Uniquivocally sets that.sendMessage(messageObject) to do the right thing.
|
||||||
// Sets hasEventBridge and wires onMessage to eventSignal as appropriate, IFF onMessage defined.
|
// Sets hasEventBridge and wires onMessage to eventSignal as appropriate, IFF onMessage defined.
|
||||||
|
|
Loading…
Reference in a new issue