Skip to content

Commit

Permalink
#1082. updating URLs to be hosted domains of GRNsight instead of loca…
Browse files Browse the repository at this point in the history
…lhost domains 5001 and 8080
  • Loading branch information
ceciliazaragoza committed Jan 29, 2025
1 parent d81fc4d commit 48dead4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion web-client/public/js/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const HOST_SITE = "http://localhost:8080";
export const HOST_SITE = "https://dondi.github.io";

export const FILE_NAME = "#fileName";

Expand Down
14 changes: 5 additions & 9 deletions web-client/public/js/iframe-coordination.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* loaded into the web browser when this script executes.
*/
iFrameResize({
checkOrigin: ["http://localhost:8080", "http://localhost:5001"],
checkOrigin: ["https://dondi.github.io", "https://grnsight.lmucs.org"],
widthCalculationMethod: "taggedElement",
heightCalculationMethod: "taggedElement",
sizeWidth: true,
Expand Down Expand Up @@ -40,9 +40,8 @@ const sendDimensions = (destination, origin) => {
};

window.addEventListener("message", event => {
if (event.origin != "http://localhost:8080" && event.origin != "http://localhost:5001") {
if (event.origin != "https://grnsight.lmucs.org") {
// Ignore any message that did not originate from the GRNsight web client server.
console.log("we do not send message from iframe-coordination");
return;
}

Expand All @@ -51,9 +50,6 @@ window.addEventListener("message", event => {
}
});

window.addEventListener("resize", () =>
sendDimensions(
document.querySelector("iframe.embedded-demo").contentWindow,
"http://localhost:5001/"
)
);
window.addEventListener("resize", () => sendDimensions(
document.querySelector("iframe.embedded-demo").contentWindow, "https://grnsight.lmucs.org"
));

0 comments on commit 48dead4

Please sign in to comment.