diff options
-rw-r--r-- | vnext/package.json | 1 | ||||
-rw-r--r-- | vnext/src/App.js | 7 | ||||
-rw-r--r-- | vnext/yarn.lock | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/vnext/package.json b/vnext/package.json index bb55b26f..bcbac443 100644 --- a/vnext/package.json +++ b/vnext/package.json @@ -88,6 +88,7 @@ "react-router-dom": "^5.0.1", "react-use-form-state": "^0.11.0", "regenerator-runtime": "^0.13.3", + "svg4everybody": "^2.1.9", "url-polyfill": "^1.1.7" } } diff --git a/vnext/src/App.js b/vnext/src/App.js index 7e0c4007..7738abcd 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -2,6 +2,8 @@ import React, { useState, useEffect } from 'react'; import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom'; import qs from 'qs'; +import svg4everybody from 'svg4everybody'; + import Icon from './ui/Icon'; import { Discover, Discussions, Blog, Tag, Home } from './ui/Feeds'; import { Friends, Readers } from './ui/Users'; @@ -19,6 +21,11 @@ import cookie from 'react-cookies'; import { me } from './api'; export default function App() { + + useEffect(() => { + svg4everybody(); + }, []); + let params = qs.parse(window.location.search.substring(1)); if (params.hash) { cookie.save('hash', params.hash, { path: '/' }); diff --git a/vnext/yarn.lock b/vnext/yarn.lock index 8f10854c..476f0d00 100644 --- a/vnext/yarn.lock +++ b/vnext/yarn.lock @@ -9099,6 +9099,11 @@ svg-tags@^1.0.0: resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764" integrity sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q= +svg4everybody@^2.1.9: + version "2.1.9" + resolved "https://registry.yarnpkg.com/svg4everybody/-/svg4everybody-2.1.9.tgz#5bd9f6defc133859a044646d4743fabc28db7e2d" + integrity sha1-W9n23vwTOFmgRGRtR0P6vCjbfi0= + svgo@^1.0.0: version "1.2.2" resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.2.2.tgz#0253d34eccf2aed4ad4f283e11ee75198f9d7316" |