diff --git a/package.json b/package.json index fef208e7c..088e5c834 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "ts-node": "^10.9.1", "tsconfig-paths": "^3.14.1", "tslib": "^2.4.1", - "typescript": "^4.9.4", + "typescript": "^5.1.3", "url-loader": "^4.1.1", "wallaby-webpack": "^3.9.16", "webpack": "^5.75.0", diff --git a/src/Add-on/ShareView/Command_ShareView.ts b/src/Add-on/ShareView/Command_ShareView.ts index 09f09bf28..ae1a891b6 100644 --- a/src/Add-on/ShareView/Command_ShareView.ts +++ b/src/Add-on/ShareView/Command_ShareView.ts @@ -96,7 +96,7 @@ export class Command_ShareView implements Command const formData = new FormData(); let fileServer = FileServer.GetInstance(); formData.append("name", fileServer.currentFileInfo.name); - formData.append("logo", GetCurrentViewPreViewImage(), "cover.jpg"); + formData.append("logo", GetCurrentViewPreViewImage() as Blob, "cover.jpg"); formData.append("file", deflate(f.ToString())); formData.append("props", props);