Skip to content

Commit d37e3e7

Browse files
committed
[push] Require segmentation reload on app change
1 parent b97c922 commit d37e3e7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

plugins/push/frontend/public/javascripts/component.push.dash.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,15 @@ window.MessagingDashboardView = countlyView.extend({
729729
m.startComputation();
730730
components.slider.instance.close();
731731
m.endComputation();
732-
if (callback) {
732+
if (window.countlySegmentation) {
733+
window.countlySegmentation.initialize("[CLY]_session").then(function(){
734+
window.components.push.initPersOpts();
735+
if (callback) {
736+
callback();
737+
}
738+
});
739+
}
740+
else if (callback) {
733741
callback();
734742
}
735743
}

0 commit comments

Comments
 (0)