Skip to content

Commit b889da4

Browse files
fix(migrate): remove .t-navbar before processing
1 parent 6f221d6 commit b889da4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

migrate/migrate-bot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ async function fetchPageContent(
6969
const html = await response.text();
7070
const dom = new JSDOM(html);
7171
const contentElement = dom.window.document.querySelector("#mw-content-text");
72+
contentElement?.querySelector('.t-navbar')?.remove();
7273
const headingElement = dom.window.document.querySelector("#firstHeading");
7374
if (!contentElement) {
7475
throw new Error("Could not find #mw-content-text");

0 commit comments

Comments
 (0)