Skip to content

Commit 70efd9f

Browse files
authored
Merge pull request #19 from bitrise-io/fix-document-context-missing-init
Fix regression: initialize document context
2 parents f58ec1a + badc85e commit 70efd9f

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)