mdict: support css

This commit is contained in:
James Feng Cao 2022-10-13 08:39:50 +08:00
parent ad2ad04b47
commit b4cd28c645
2 changed files with 3 additions and 13 deletions

View file

@ -176,9 +176,8 @@
let filenames=path.substring(iSlash+1);
{
let iDot = filenames.indexOf('.');
if(iDot>0)
document.getElementsByTagName("link")[0].href =
filenames.substring(0,iDot)+"css";
document.getElementsByTagName("link")[0].href =
filenames.substring(0,iDot+1)+"css";
}
window.onload = function(){
if(filenames.length>0){