mirror of
https://github.com/hacks-guide/Guide-WiiU.git
synced 2026-07-19 00:51:21 -05:00
Merge b01eb1a453 into a4c9cf8038
This commit is contained in:
commit
19b2f9ee93
|
|
@ -6,6 +6,10 @@ hero:
|
|||
tagline: "A guide collaboration between Nintendo Homebrew's Helpers and Staff, from stock to Aroma custom firmware."
|
||||
image:
|
||||
src: "/assets/img/home-page-feature.jpg"
|
||||
|
||||
head: [
|
||||
['script', {src: '/assets/js/docsify-wrapper.js'}]
|
||||
]
|
||||
---
|
||||
|
||||
::: tip
|
||||
|
|
|
|||
27
docs/public/assets/js/docsify-wrapper.js
Normal file
27
docs/public/assets/js/docsify-wrapper.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
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;
|
||||
}
|
||||
})
|
||||
Loading…
Reference in New Issue
Block a user