Skip to content

Commit

Permalink
fix: 修复无后缀文件
Browse files Browse the repository at this point in the history
  • Loading branch information
vcheckzen committed Sep 19, 2024
1 parent c4f341e commit fe2de5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front-end/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,8 @@
},
};

const suffix = path.split('.').pop();
const suffix =
path.split('/').pop().split('.')[1] || '__no_suffix__';
let content = document.querySelector('.content');

content.appendChild(
Expand Down

0 comments on commit fe2de5a

Please sign in to comment.