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 b154be1 commit 3b423d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/special-pages/pages/new-tab/src/js/mock-transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 3b423d8

Please sign in to comment.