We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c829a3 commit ad97e72Copy full SHA for ad97e72
1 file changed
webapp/components/NetPyNE.js
@@ -59,11 +59,14 @@ class NetPyNE extends React.Component {
59
const loadFromEvent = event => {
60
console.log('Parent frame message received:', event)
61
62
- // Here we would expect some cross-origin check, but we don't do anything more than load a nwb file here
+ // Here we would expect some cross-origin check, but we don't do anything more than load a model here
63
switch (event.data.type) {
64
case 'INIT_INSTANCE':
65
- console.log('NOW WE CAN SWITCH STATE?')
+ if (this.loaded) {
66
+ return
67
+ }
68
this.loaded = true
69
+ console.log('Netpyne is ready')
70
if (window !== window.parent) {
71
window.parent.postMessage({
72
type: 'APP_READY'
0 commit comments