fix: async function openPdf + JS 内联 HTML 修复
- openPdf 改为 async function(修 await 语法错误) - index.html JS 内联,彻底绕过浏览器缓存问题 - 添加 index_template.html 作为原始模板
This commit is contained in:
@@ -206,7 +206,7 @@ function getLocalPdfUrl(extUrl) {
|
||||
return null;
|
||||
}
|
||||
|
||||
function openPdf(url, title) {
|
||||
async function openPdf(url, title) {
|
||||
const decodedUrl = decodeURIComponent(url);
|
||||
const decodedTitle = decodeURIComponent(title);
|
||||
currentPdf = decodedUrl;
|
||||
|
||||
Reference in New Issue
Block a user