| 553 | return noty({ timeout: 4000, text: 'Error: child window disconnected, you will have to reload this page to preview.', type: 'error', layout: 'top' }) |
| 554 | } |
| 555 | const sendLevel = () => { |
| 556 | return this.childWindow.Backbone.Mediator.publish('level:reload-from-data', { level: this.level, supermodel: this.supermodel }) |
| 557 | } |
| 558 | if (this.childWindow && !this.childWindow.closed && (this.playClassMode === newClassMode) && (this.playClassLanguage === newClassLanguage)) { |
| 559 | // Reset the LevelView's world, but leave the rest of the state alone |
| 560 | sendLevel() |