Fixed: CSS is not automatically livesynced in angular apps

This commit is contained in:
Tsvetan Raikov
2016-07-28 14:59:16 +03:00
parent 0477c81dd5
commit ce83da8ba3

View File

@ -112,8 +112,8 @@ export function __onLiveSync() {
// Reload app.css in case it was changed. // Reload app.css in case it was changed.
loadCss(); loadCss();
// Reload current page. global.__onLiveSyncCore();
frame.reloadPage();
} catch (ex) { } catch (ex) {
// Show the error as modal page, save reference to the page in global context. // Show the error as modal page, save reference to the page in global context.
ensureBuilder(); ensureBuilder();
@ -121,3 +121,9 @@ export function __onLiveSync() {
global.errorPage.showModal(); global.errorPage.showModal();
} }
} }
export function __onLiveSyncCore() {
// Reload current page.
frame.reloadPage();
}
global.__onLiveSyncCore = __onLiveSyncCore;