File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -51,19 +51,10 @@ The below must be included within the `<head>` element:
51
51
52
52
``` javascript
53
53
< script>
54
- // Excludes multiPage functionality for PR Preview (to allow DIFFing next / previous)
55
54
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 (); }
61
57
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 ); }) }
67
58
addMultipage (); });
68
59
function hashSection (hash ) {
69
60
// Grabs the ID's from every element requested
You can’t perform that action at this time.
0 commit comments