We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ec160e commit f4e3ad7Copy full SHA for f4e3ad7
website/src/theme/DocSidebar/index.js
@@ -2,14 +2,6 @@ import React, { useEffect, useRef } from 'react';
2
import { useColorMode } from '@docusaurus/theme-common';
3
import OriginalDocSidebar from '@theme-original/DocSidebar';
4
5
-function reload() {
6
- if (typeof ethicalads !== 'undefined') {
7
- ethicalads.reload();
8
- } else {
9
- setTimeout(reload, 300);
10
- }
11
-}
12
-
13
export default function DocSidebar(props) {
14
const bannerRef = useRef();
15
const { colorMode } = useColorMode();
@@ -24,7 +16,10 @@ export default function DocSidebar(props) {
24
16
banner.setAttribute('data-ea-publisher', 'react-chartjs-2jsorg');
25
17
banner.setAttribute('data-ea-type', 'image');
26
18
document.querySelector('.theme-doc-sidebar-menu')?.parentElement?.appendChild(banner);
27
- reload();
19
+
20
+ if (typeof ethicalads !== 'undefined') {
21
+ ethicalads.reload();
22
+ }
28
23
}
29
}, []);
30
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments