fix(WEBJS): hide "what's new" modal - use gating days
This commit is contained in:
1 parent
c4f224b7a6
commit
c9ac14e1a4
1 file changed
+7
-1
@@ -159,7 +159,13 @@ export class WebjsClientCore extends Client {
|
||||
if (!WAWebUserPrefsMeUser.getMaybeMePnUser()) {
|
||||
return false;
|
||||
}
|
||||
const nux = WAWebWhatsNewNux.createWhatsNewNux();
|
||||
// The app checks the cool-off with AB-prop driven days (15 or 30)
|
||||
const WAWebWhatsNewGatingUtils = window.require(
|
||||
'WAWebWhatsNewGatingUtils',
|
||||
);
|
||||
const days =
|
||||
WAWebWhatsNewGatingUtils?.getWhatsNewAutoModalCooldownDays?.();
|
||||
const nux = WAWebWhatsNewNux.createWhatsNewNux(days);
|
||||
if (!nux.shouldShow()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user