Commit 07d6c4ef authored by Robert Knight's avatar Robert Knight

Use named parameter instead of boolean

parent c6a65f46
......@@ -27,7 +27,7 @@
let chapterIndex = 0;
const setChapter = (index, initialLoad = false) => {
const setChapter = (index, { initialLoad = false } = {}) => {
if (index < 0 || index >= chapterURLs.length) {
return;
}
......@@ -89,7 +89,7 @@
this.nextButton.onclick = () => setChapter(chapterIndex + 1);
controlBar.append(this.nextButton);
setChapter(0, true /* initialLoad */);
setChapter(0, { initialLoad: true });
}
}
customElements.define('mosaic-book', MosaicElement);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment