Skip to content

Commit 2c6072f

Browse files
committed
remove unnecessary code #1
1 parent 4671c96 commit 2c6072f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pages/public/read-chapter.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,6 @@ class ReadChapter extends React.Component {
228228

229229
elements.forEach((e) => e.forEach(changeColors(black, white)));
230230
$('p a').forEach(changeColors(blue, white));
231-
232-
const style = document.createElement('style');
233-
const link = document.createElement('link');
234-
235-
link.setAttribute('href', 'https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i');
236-
link.setAttribute('rel', 'stylesheet');
237-
238-
document.head.appendChild(style);
239-
document.head.appendChild(link);
240231
};
241232

242233
loadDarkTheme = () => {
@@ -267,15 +258,6 @@ class ReadChapter extends React.Component {
267258

268259
elements.forEach((e) => e.forEach(changeColors(white, black)));
269260
$('p a').forEach(changeColors(blue, white));
270-
271-
const style = document.createElement('style');
272-
const link = document.createElement('link');
273-
274-
link.setAttribute('href', 'https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i');
275-
link.setAttribute('rel', 'stylesheet');
276-
277-
document.head.appendChild(style);
278-
document.head.appendChild(link);
279261
};
280262

281263
closeTocWhenMobile = () => {

0 commit comments

Comments
 (0)