| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a96a957 commit 90a0da2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ function onLivesync(args: EventData): void { | |||
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | 26 | try { | |
| 27 | - reloadPage(); | ||
| 27 | + g.__onLiveSyncCore(); | ||
| 28 | 28 | } catch (ex) { | |
| 29 | 29 | // Show the error as modal page, save reference to the page in global context. | |
| 30 | 30 | g.errorPage = parse(`<Page><ScrollView><Label text="${ex}" textWrap="true" style="color: red;" /></ScrollView></Page>`); | |
@@ -74,6 +74,9 @@ export function reloadPage(): void { | |||
| 74 | 74 | } | |
| 75 | 75 | } | |
| 76 | 76 | ||
| 77 | + // attach on global, so it can be overwritten in NativeScript Angular | ||
| 78 | + (<any>global).__onLiveSyncCore = reloadPage; | ||
| 79 | + | ||
| 77 | 80 | export function resolvePageFromEntry(entry: NavigationEntry): Page { | |
| 78 | 81 | let page: Page; | |
| 79 | 82 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments