(context?: ModuleContext)
| 684 | } |
| 685 | |
| 686 | public _handleLivesync(context?: ModuleContext): boolean { |
| 687 | if (super._handleLivesync(context)) { |
| 688 | return true; |
| 689 | } |
| 690 | |
| 691 | // Handle markup/script changes in currentPage |
| 692 | if (this.currentPage && viewMatchesModuleContext(this.currentPage as any, context, ['markup', 'script'])) { |
| 693 | Trace.write(`Change Handled: Replacing page ${context.path}`, Trace.categories.Livesync); |
| 694 | |
| 695 | // Replace current page with a default fade transition |
| 696 | this.replacePage({ |
| 697 | moduleName: context.path, |
| 698 | transition: { |
| 699 | name: 'fade', |
| 700 | duration: 100, |
| 701 | }, |
| 702 | }); |
| 703 | |
| 704 | return true; |
| 705 | } |
| 706 | |
| 707 | return false; |
| 708 | } |
| 709 | |
| 710 | private _onLivesyncWithoutContext(): boolean { |
| 711 | // Reset activity/window content when: |
no test coverage detected