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 2546a1d commit 49bc6efCopy full SHA for 49bc6ef
src/content-script/index.jsx
@@ -25,7 +25,12 @@ import { changeLanguage } from 'i18next'
25
*/
26
async function mountComponent(siteConfig, userConfig) {
27
const retry = 10
28
+ let oldUrl = location.href
29
for (let i = 1; i <= retry; i++) {
30
+ if (location.href !== oldUrl) {
31
+ console.log(`SiteAdapters Retry ${i}/${retry}: stop`)
32
+ return
33
+ }
34
const e =
35
(siteConfig &&
36
(getPossibleElementByQuerySelector(siteConfig.sidebarContainerQuery) ||
0 commit comments