mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Emoji lingue, fix pagine, favicon
This commit is contained in:
15
static/local-file-tweaks.js
Normal file
15
static/local-file-tweaks.js
Normal file
@ -0,0 +1,15 @@
|
||||
(function(){
|
||||
|
||||
if (location.protocol !== 'file:') {
|
||||
return;
|
||||
}
|
||||
|
||||
window.addEventListener('load', (function(){
|
||||
Array.from(document.querySelectorAll('a[href]')).forEach(function(linkEl){
|
||||
if (linkEl.href.startsWith('file://') && linkEl.href.endsWith('/')) {
|
||||
linkEl.href += 'index.html';
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
})();
|
Reference in New Issue
Block a user