From cea08e9b9ae0a396a813ca54e250aff703afc1fe Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 14 Aug 2019 10:57:36 +0300 Subject: add external svg shim --- vnext/src/App.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vnext/src') 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: '/' }); -- cgit v1.2.3