Skip to content

Commit d84d9dd

Browse files
committed
Emergancy hotfix
1 parent 8bf0aa3 commit d84d9dd

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

multipage.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,10 @@ The below must be included within the `<head>` element:
5151

5252
```javascript
5353
<script>
54-
// Excludes multiPage functionality for PR Preview (to allow DIFFing next / previous)
5554
function addMultipage() {
56-
let truthy = window.location.href.includes('pr-preview');
57-
if (truthy = true) {
58-
document.querySelectorAll('.pageButtons').forEach(e => e.classList.add('hide')); } else {
59-
window.addEventListener('hashchange', onHashChange);
60-
onHashChange(); } }
55+
window.addEventListener('hashchange', onHashChange);
56+
onHashChange(); }
6157
window.addEventListener("load", (event) => {
62-
let truthy = window.location.href.includes('pr-preview');
63-
if (truthy = true) {
64-
document.body.querySelectorAll('details')
65-
.forEach((e) => {(e.hasAttribute('open')) ?
66-
e.removeAttribute('open') : e.setAttribute('open',true); }) }
6758
addMultipage(); });
6859
function hashSection(hash) {
6960
// Grabs the ID's from every element requested

0 commit comments

Comments
 (0)