()
| 101 | } |
| 102 | |
| 103 | protected onStateChanged(): void { |
| 104 | const config = SharingBase.filterComponentState(this.layout.toConfig()); |
| 105 | this.ensureUrlIsNotOutdated(config); |
| 106 | |
| 107 | // Update embedded links if present (works in both modes) |
| 108 | if (options.embedded) { |
| 109 | const strippedToLast = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/') + 1); |
| 110 | $('a.link').prop('href', strippedToLast + '#' + serialiseState(config)); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | protected ensureUrlIsNotOutdated(config: any): void { |
| 115 | const stringifiedConfig = JSON.stringify(config); |
nothing calls this directly
no test coverage detected