File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { updateTimeButtonLabels } from './main.js';
66import { 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
1212export let currentDateTime = {
@@ -142,15 +142,15 @@ function getFragmentIdentifier(selectorType) {
142142
143143function 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
148148function generateSelectorHTML ( selectorType , selectorValue ) {
149149 const fragmentIdentifier = getFragmentIdentifier ( selectorType ) ;
150150 const translationKey = selectorType . match ( / (?: s t a t e | c o m m e n t ) / ) ? '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/**
You can’t perform that action at this time.
0 commit comments