Skip to content

Commit 92e5d8c

Browse files
Merge pull request #547
2 parents 8a82327 + 6807459 commit 92e5d8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/js/helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { updateTimeButtonLabels } from './main.js';
66
import { YoHoursChecker } from './yohours_model.js';
77

88
// Access global variables set by main.js or UMD scripts
9-
const { opening_hours, default_lat, default_lon, specification_url } = window;
9+
const { opening_hours, default_lat, default_lon } = window;
1010

1111
// Export date/time state
1212
export let currentDateTime = {
@@ -142,15 +142,15 @@ function getFragmentIdentifier(selectorType) {
142142

143143
function generateRuleSeparatorHTML(ruleSeparator) {
144144
return `<span title="${i18next.t('texts.rule separator ' + ruleSeparator)}" class="rule_separator">` +
145-
`<a target="_blank" class="specification" href="${specification_url}#section:rule_separators">${ruleSeparator}</a></span><br>`;
145+
`<a target="_blank" class="specification" href="${window.specification_url}#section:rule_separators">${ruleSeparator}</a></span><br>`;
146146
}
147147

148148
function generateSelectorHTML(selectorType, selectorValue) {
149149
const fragmentIdentifier = getFragmentIdentifier(selectorType);
150150
const translationKey = selectorType.match(/(?:state|comment)/) ? 'modifier' : 'selector';
151151

152152
return `<span title="${i18next.t(`words.${translationKey}`, { name: selectorType })}" class="${selectorType}">` +
153-
`<a target="_blank" class="specification" href="${specification_url}#${fragmentIdentifier}">${selectorValue}</a></span>`;
153+
`<a target="_blank" class="specification" href="${window.specification_url}#${fragmentIdentifier}">${selectorValue}</a></span>`;
154154
}
155155

156156
/**

0 commit comments

Comments
 (0)