From 65d28e2c4ccfe46a4133220df60d5a76ece41c7f Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Fri, 21 Sep 2018 16:54:02 +0200 Subject: [PATCH] Add error message for IE8 and lower --- browserslist | 4 ++-- package.json | 4 ++-- public/unsupported-browsers.css | 8 ++++++++ src/index.html | 6 ++++++ yarn.lock | 7 +++---- 5 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 public/unsupported-browsers.css diff --git a/browserslist b/browserslist index 70900640..dc070217 100644 --- a/browserslist +++ b/browserslist @@ -1,4 +1,4 @@ # Browsers that we support > 5% -IE > 9 # sorry -last 10 versions \ No newline at end of file +IE > 8 +last 5 versions \ No newline at end of file diff --git a/package.json b/package.json index b3ba4764..1f37e8ec 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "ethereumjs-tx": "^1.3.3", "ethereumjs-units": "^0.2.0", "ethereumjs-util": "^5.1.4", - "git-revision-webpack-plugin": "^3.0.3", "flow-webpack-plugin": "^1.2.0", + "git-revision-webpack-plugin": "^3.0.3", "hdkey": "^0.8.0", "html-webpack-plugin": "^3.2.0", "jest-fetch-mock": "^1.6.5", @@ -56,7 +56,7 @@ "redux-logger": "^3.0.6", "redux-raven-middleware": "^1.2.0", "redux-thunk": "^2.2.0", - "styled-components": "^3.3.3", + "styled-components": "^3.4.9", "styled-media-query": "^2.0.2", "styled-normalize": "^8.0.0", "trezor-connect": "^5.0.32", diff --git a/public/unsupported-browsers.css b/public/unsupported-browsers.css new file mode 100644 index 00000000..6489934f --- /dev/null +++ b/public/unsupported-browsers.css @@ -0,0 +1,8 @@ +body { + padding: 50px; +} + +p { + text-align: center; + font-size: 30px; +} diff --git a/src/index.html b/src/index.html index c62bd67d..39bf0924 100644 --- a/src/index.html +++ b/src/index.html @@ -10,8 +10,14 @@ + +
diff --git a/yarn.lock b/yarn.lock index 24401a58..a603da66 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9763,15 +9763,14 @@ style-search@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902" -styled-components@^3.3.3: - version "3.3.3" - resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.3.3.tgz#09e702055ab11f7a8eab8229b1c0d0b855095686" +styled-components@^3.4.9: + version "3.4.9" + resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.4.9.tgz#519abeb351b37be5b7de6a15ff9e4efeb9d772da" dependencies: buffer "^5.0.3" css-to-react-native "^2.0.3" fbjs "^0.8.16" hoist-non-react-statics "^2.5.0" - is-plain-object "^2.0.1" prop-types "^15.5.4" react-is "^16.3.1" stylis "^3.5.0"