Skip to content

Commit

Permalink
remove an alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Song-Nop committed Dec 14, 2024
1 parent 16c4c5b commit f8c0314
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/typst-preview-frontend/src/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ export async function wsMain({ url, previewMode, isContentPreview }: WsArgs) {
// choose the page, x, y closest to the current page
const [page, x, y] = positions.reduce((acc, cur) => {
const [page, x, y] = cur.split(" ").map(Number);
console.log("jump", page, x, y);
alert("jump " + page + " " + x + " " + y);
const current_page = current_page_number;
if (Math.abs(page - current_page) < Math.abs(acc[0] - current_page)) {
return [page, x, y];
Expand Down

0 comments on commit f8c0314

Please sign in to comment.