Skip to content

Commit

Permalink
Replace window with globalThis.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjni committed Nov 9, 2024
1 parent d559c20 commit 5b9df73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/publish/common/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function stageDocumentPublish(title: string, publishFiles: PublishFiles) {
const publishDir = globalTempContext().createDir();

// copy all files to it
const stagedFiles = window.structuredClone(publishFiles) as PublishFiles;
const stagedFiles = globalThis.structuredClone(publishFiles) as PublishFiles;
stagedFiles.baseDir = publishDir;
for (const file of publishFiles.files) {
const src = join(publishFiles.baseDir, file);
Expand Down

0 comments on commit 5b9df73

Please sign in to comment.