Skip to content

Commit

Permalink
respect platform always
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Jan 31, 2025
1 parent fc27552 commit 478f3a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions special-pages/pages/new-tab/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ export async function init(root, messaging, telemetry, baseEnvironment) {
.withPlatformName(init.platform?.name)
.withPlatformName(baseEnvironment.urlParams.get('platform'))
.withFeatureState('customizerDrawer', init.settings?.customizerDrawer)
.withFeatureState('batchedActivityApi', init.platform.name === 'windows' ? { state: 'enabled' } : { state: 'disabled' })
.withFeatureState(
'batchedActivityApi',
baseEnvironment.urlParams.get('activity.api') === 'batched' ? { state: 'enabled' } : { state: 'disabled' },
);
)
.withFeatureState('batchedActivityApi', init.platform.name === 'windows' ? { state: 'enabled' } : { state: 'disabled' });

if (!window.__playwright_01) {
console.log('environment:', environment);
Expand Down

0 comments on commit 478f3a1

Please sign in to comment.