Skip to content

Commit 735c87c

Browse files
committed
remove pushstate
1 parent 410617c commit 735c87c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ const main = async () => {
117117
// blobに変換して遷移
118118
const blob = new Blob([fileData], { type: "application/pdf" });
119119
const blobUrl = window.URL.createObjectURL(blob);
120-
history.pushState(null, "", `?dist=${encodeURIComponent(url)}`);
121120
window.location.href = blobUrl;
122121
};
123122

@@ -128,6 +127,7 @@ const main = async () => {
128127
}
129128

130129
const error = await main();
130+
131131
if (error) {
132132
if (elm) {
133133
elm.innerText = error;

0 commit comments

Comments
 (0)