fix 80124

This commit is contained in:
赵霄
2024-01-02 11:00:45 +08:00
parent 281fb89b25
commit 4ae9bd18ab
2 changed files with 39 additions and 1 deletions
+1
View File
@@ -1554,6 +1554,7 @@ exports.PDFViewerApplication = PDFViewerApplication;
if (!file) {
return;
}
// 可以在这里从localStorage取token放在file里,处理复制链接后不能预览的判断
try {
const viewerOrigin = new URL(window.location.href).origin || "null";
if (HOSTED_VIEWER_ORIGINS.includes(viewerOrigin)) {