Skip to content

Commit 2de1d95

Browse files
committed
move function into preProcess
1 parent b3d5590 commit 2de1d95

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

gap-analysis/index.html

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//publishDate: "2020-06-16",
1818
//previousPublishDate: "2014-12-16",
1919
//previousMaturity: "FPWD",
20-
20+
2121
// langs array lists languages addressed by this document, in order of speaker (highest first)
2222
// it is used to generate the javascript needed for the matrix
2323
langs: ['Arabic', 'Persian'],
@@ -39,22 +39,24 @@
3939
],
4040

4141

42-
github:"w3c/alreq",
43-
group:"i18n",
44-
45-
postProcess: [
46-
function importStyleSheet() {
47-
[...document.querySelectorAll("link[rel='stylesheet'][data-import]")].forEach(l => {
48-
const style = document.createElement("style");
49-
fetch(l.href).then(r => r.text()).then(t => {
50-
style.textContent = t;
51-
l.replaceWith(style);
52-
});
53-
});
54-
},
55-
() => { addPrompts() },
56-
() => { getAllData('alreq', 'doc:arfa') }
57-
],
42+
github: "w3c/alreq",
43+
group: "i18n",
44+
preProcess: [
45+
() => { addPrompts() },
46+
() => { getAllData('alreq', 'doc:arfa') }
47+
],
48+
49+
postProcess: [
50+
function importStyleSheet() {
51+
[...document.querySelectorAll("link[rel='stylesheet'][data-import]")].forEach(l => {
52+
const style = document.createElement("style");
53+
fetch(l.href).then(r => r.text()).then(t => {
54+
style.textContent = t;
55+
l.replaceWith(style);
56+
});
57+
});
58+
}
59+
],
5860
};
5961
</script>
6062

0 commit comments

Comments
 (0)