Skip to content

Commit

Permalink
Merge pull request #649 from ACCESS-NRI/davide/persistent-sessions
Browse files Browse the repository at this point in the history
Added persistent sessions to 'How to run ACCESS-CM' page
  • Loading branch information
atteggiani authored Feb 12, 2024
2 parents 464a674 + 5bbb1b7 commit c02c3f6
Show file tree
Hide file tree
Showing 2 changed files with 375 additions and 575 deletions.
2 changes: 1 addition & 1 deletion docs/js/miscellaneous.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function tabFunctionality() {
document.querySelectorAll('[href^="#"]:not([class^="md"])').forEach(el => {
let href = el.getAttribute('href');
let tabEl = document.getElementById(href.slice(1,))
if (tabEl.parentElement.classList.contains("tabLabels")) {
if (tabEl?.parentElement.classList.contains("tabLabels")) {
el.addEventListener("click",(e) => openTab(tabEl), false);
}
})
Expand Down
Loading

0 comments on commit c02c3f6

Please sign in to comment.