Skip to content

Commit

Permalink
add saveData to slowConnection (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tak-Iwamoto committed Apr 23, 2021
1 parent 11533ee commit f787624
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const slowConnection =
// @ts-ignore
navigator['connection'] &&
// @ts-ignore
['slow-2g', '2g'].indexOf(navigator['connection'].effectiveType) !== -1
(['slow-2g', '2g'].indexOf(navigator['connection'].effectiveType) !== -1 ||
// @ts-ignore
navigator['connection'].saveData)

// config
const defaultConfig = {
Expand Down

0 comments on commit f787624

Please sign in to comment.