Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
unidesigner committed Jun 8, 2023
1 parent 8b9469c commit 59f9191
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/neuroglancer/ui/default_viewer_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,10 @@ export function setupDefaultViewer() {
bindDefaultCopyHandler(viewer);
bindDefaultPasteHandler(viewer);

//console.log("setupDefaultViewer", viewer);
if (viewer.state) {
viewer.state.changed.add(() => {
//console.log("viewer state changed");
if (window && window.parent) {
//console.log("has window, and parent window", window, window.parent);
/*window.parent.postMessage(
{ type: "state_change", state: JSON.stringify(viewer.state.toJSON()) },
"*"
);*/
// console.log("json", viewer.state.toJSON());
//
window.parent.postMessage({ type: "state_change", state: viewer.state.toJSON() }, "*");
}
});
}
Expand Down

1 comment on commit 59f9191

@vercel
Copy link

@vercel vercel bot commented on 59f9191 Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.