Merge pull request #36181 from overleaf/mj-offline-mode-feature

[web] Add offline mode to feature set

GitOrigin-RevId: 93d2ed373af5b46f5ead924c14605775826c46e3
This commit is contained in:
Mathias Jakobsen
2026-09-17 11:50:44 +00:00
committed by Copybot
parent 42feabe643
commit f7de42f1d3
9 changed files with 20 additions and 4 deletions
@@ -44,10 +44,9 @@ function mount(
intermittentConnectionImprovementsEnabled?: boolean
} = {}
) {
// the provider reads getMeta('ol-user') to decide the lock threshold; the
// `versioning` feature marks a premium user
// the provider reads getMeta('ol-user') to decide the lock threshold
window.metaAttributesCache.set('ol-user', {
features: isPremiumUser ? { versioning: true } : {},
features: isPremiumUser ? { offlineMode: true } : {},
})
// the provider reads the split test variant via useFeatureFlag
window.metaAttributesCache.set('ol-splitTestVariants', {