Skip to content

Commit badc85e

Browse files
aorcsikclaude
andcommitted
Fix regression: initialize document context in stacks and changelog-topic entry points
setMetaContent (via getDocumentContext) was called in stacks.js and changelog-topic.js without a prior setDocumentContext call, causing a runtime error after the context module was introduced. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 36d043f commit badc85e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/js/changelog-topic.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import ChangelogService from './changelog/ChangelogService';
55
import ChangelogTagFactory from './changelog/ChangelogTagFactory';
66
import YouTubeLoader from './changelog/YouTubeLoader';
77
import { detectTopicFromUrl, formatDate, setMetaContent } from './shared/common';
8+
import { setDocumentContext } from './shared/context';
89

910
import '../css/changelog.css';
1011
import { CHANGELOG_PATH_PREFIX, CHANGELOG_SUBPAGE_PARAM_NAME } from './changelog/config';
1112

13+
setDocumentContext(document, document.location.hostname);
14+
1215
const tagFactory = new ChangelogTagFactory();
1316
const youTubeLoader = new YouTubeLoader();
1417

src/js/stacks.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import {
1111
STACKS_SUBPAGE_PARAM_NAME,
1212
STACKS_SUBPAGE_PATH_PREFIX,
1313
} from './stacks/config';
14+
import { setDocumentContext } from './shared/context';
15+
16+
setDocumentContext(document, document.location.hostname);
1417

1518
const stacksAPIBase = 'https://stacks.bitrise.io/';
1619

0 commit comments

Comments
 (0)