update
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user