Compare commits

..

No commits in common. "bd536f2ea5a3941d9961f0bd36d8a40f6ce4e8ee" and "5729caeea0a3a43cc3495e24a85753d3547791f8" have entirely different histories.

2 changed files with 1 additions and 19 deletions

15
.vscode/launch.json vendored
View file

@ -1,15 +0,0 @@
{
// IntelliSense .
// .
// https://go.microsoft.com/fwlink/?linkid=830387() .
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "localhost에 대해 Chrome 시작",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}"
}
]
}

View file

@ -69,7 +69,7 @@ function ComicViewer({
return () => { return () => {
img.removeEventListener("load", listener); img.removeEventListener("load", listener);
// abort loading // abort loading
img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="; img.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEAAAAALAAAAAABAAEAAAI=;';
// TODO: use web worker to abort loading image in the future // TODO: use web worker to abort loading image in the future
}; };
} }
@ -85,9 +85,6 @@ function ComicViewer({
)} )}
alt="main content"/> alt="main content"/>
<div className="absolute right-0 w-1/2 h-full z-10 select-none" onMouseDown={() => pageUp(1)} /> <div className="absolute right-0 w-1/2 h-full z-10 select-none" onMouseDown={() => pageUp(1)} />
{curPage + 1 < totalPage && (
<img src={`/api/doc/${doc.id}/comic/${curPage + 1}`} alt="next page" className="sr-only" />
)}
</div> </div>
); );
} }