You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Guide-WiiU/docs/public/assets/js/docsify-wrapper.js

28 lines
554 B
JavaScript

/*
Copyright (C) 2024 Nintendo Homebrew
SPDX-License-Identifier: MIT
*/
const map = new WeakMap()
function checkDocsify(callback) {
if (map.has(callback))
return;
map.set(callback, true);
if (document.readyState === 'complete')
callback();
else
window.addEventListener('load', callback, false);
}
checkDocsify(() => {
if(!window.location.hash)
return;
if(window.location.hash[1] == '/') {
path = window.location.hash.substring(1);
window.location.href = path;
}
})