Skip to content

Commit

Permalink
default to auto-animate
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Osbourne committed Oct 14, 2024
1 parent 3f638c3 commit ccd9c40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/special-pages/pages/new-tab/src/js/mock-transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ export function mockTransport () {
}
case 'stats_getConfig': {
/** @type {StatsConfig} */
const defaultConfig = { expansion: 'expanded', animation: { kind: 'none' } }
const defaultConfig = { expansion: 'expanded', animation: { kind: 'auto-animate' } }
const fromStorage = read('stats_config') || defaultConfig
if (url.searchParams.get('animation') === 'auto-animate') {
fromStorage.animation = { kind: 'auto-animate' }
if (url.searchParams.get('animation') === 'none') {
fromStorage.animation = { kind: 'none' }
}
if (url.searchParams.get('animation') === 'view-transitions') {
fromStorage.animation = { kind: 'view-transitions' }
Expand All @@ -191,10 +191,10 @@ export function mockTransport () {
}
case 'favorites_getConfig': {
/** @type {FavoritesConfig} */
const defaultConfig = { expansion: 'expanded', animation: { kind: 'none' } }
const defaultConfig = { expansion: 'expanded', animation: { kind: 'auto-animate' } }
const fromStorage = read('favorites_config') || defaultConfig
if (url.searchParams.get('animation') === 'auto-animate') {
fromStorage.animation = { kind: 'auto-animate' }
if (url.searchParams.get('animation') === 'none') {
fromStorage.animation = { kind: 'none' }
}
if (url.searchParams.get('animation') === 'view-transitions') {
fromStorage.animation = { kind: 'view-transitions' }
Expand Down

0 comments on commit ccd9c40

Please sign in to comment.