diff options
author | Vitaly Takmazov | 2019-08-14 10:57:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | cea08e9b9ae0a396a813ca54e250aff703afc1fe (patch) | |
tree | 37c095f9aaa57bf879b534e41642b5a0dc6b3010 /vnext/src | |
parent | 340d8b124edc2b73fce4ab1c150c2a4fffb0c7d3 (diff) |
add external svg shim
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/App.js | 7 |
1 files changed, 7 insertions, 0 deletions
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: '/' }); |