Skip to content

Commit

Permalink
Unnecessary methods removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PVillarmarzo committed Dec 10, 2024
1 parent 83e80df commit a8fab6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
14 changes: 3 additions & 11 deletions docs/web/custom-visualizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ var host;
window.revealBridge = {
sendMessageToHost: function (data) {
try {
if (window.top && window.top.location) {
window.top.postMessage(data, "*");
if (window.parent && window.parent.location) {
window.parent.postMessage(data, "*");
}
} catch (e) {
// window.top.postMessage couldn't be executed.
// window.parent.postMessage couldn't be executed.
// This sould never happen but...
}
},
Expand All @@ -32,14 +32,6 @@ window.revealBridge = {
this.sendMessageToHost({ message: "ready" });
}
},

runAction: function (actionName, data) {
this.sendMessageToHost({ message: "runAction", action: actionName, rowData: data });
},

openUrl: function (url) {
this.sendMessageToHost({ message: "openURL", URL: url });
},
}

function processMessageFromHost(message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ var host;
window.revealBridge = {
sendMessageToHost: function (data) {
try {
if (window.top && window.top.location) {
window.top.postMessage(data, "*");
if (window.parent && window.parent.location) {
window.parent.postMessage(data, "*");
}
} catch (e) {
// window.top.postMessage couldn't be executed.
// window.parent.postMessage couldn't be executed.
// This sould never happen but...
}
},
Expand All @@ -32,14 +32,6 @@ window.revealBridge = {
this.sendMessageToHost({ message: "ready" });
}
},

runAction: function (actionName, data) {
this.sendMessageToHost({ message: "runAction", action: actionName, rowData: data });
},

openUrl: function (url) {
this.sendMessageToHost({ message: "openURL", URL: url });
},
}

function processMessageFromHost(message) {
Expand Down

0 comments on commit a8fab6e

Please sign in to comment.