This commit is contained in:
2025-06-27 01:58:11 +00:00
parent 7fda18edd7
commit 9b211f563f
5 changed files with 5 additions and 8 deletions

View File

@@ -381,8 +381,6 @@ export function PDFViewer({ file, compact, zoomFactor, justifyText }) {
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.4.0/github-markdown-light.min.css">
<style>
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
@@ -468,7 +466,6 @@ export function PDFViewer({ file, compact, zoomFactor, justifyText }) {
title={`File: ${file.id}`}
className="w-full h-full border-0"
key={file.id}
sandbox="allow-same-origin"
allow="fullscreen"
onLoad={() => {
if (iframeRef.current?.contentDocument?.body) {

View File

@@ -3,7 +3,7 @@ import { apiInstance } from "./api.js";
function getLocalSubjectIdx() {
let subject = localStorage.getItem("subject");
if (typeof subject === "undefined") {
if (typeof subject === "undefined" || subject === null) {
subject = 0;
}
subject = parseInt(subject);