Skip to content

Commit 48f15e0

Browse files
authored
Merge pull request #375 from NativeScript/raikov/fix-livesync-css-angular
Fixed: CSS is not automatically livesynced in angular apps
2 parents f929a89 + b99c997 commit 48f15e0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

nativescript-angular/application.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ export function nativeScriptBootstrap(appComponentType: any, customProviders?: P
184184
}
185185

186186
// Patch livesync
187-
const _baseLiveSync = global.__onLiveSync;
188-
global.__onLiveSync = function () {
189-
rendererLog("LiveSync Started");
187+
const _baseLiveSyncCore = global.__onLiveSyncCore;
188+
global.__onLiveSyncCore = function () {
189+
rendererLog("ANGULAR LiveSync Started");
190190
if (bootstrapCache) {
191191
onBeforeLivesync.next(lastBootstrappedApp ? lastBootstrappedApp.get() : null);
192192

@@ -203,8 +203,7 @@ global.__onLiveSync = function () {
203203
}
204204
frame.navigate(newEntry);
205205
}
206-
}
207-
else {
208-
_baseLiveSync();
206+
} else {
207+
_baseLiveSyncCore();
209208
}
210209
};

0 commit comments

Comments
 (0)