From ede5d8a23e27e0a8306d7f8cdbad1001c9ac664c Mon Sep 17 00:00:00 2001 From: Tak-Iwamoto Date: Sun, 18 Apr 2021 23:24:21 +0900 Subject: [PATCH] add saveData to slowConnection --- src/config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index fbb87002f..40271a4be 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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 = {