mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Expose window.EXCALIDRAW_EXPORT_SOURCE
which host can use to overwrite the source field in exports (#5095)
* Expose `window.EXCALIDRAW_EXPORT_SOURCE` which host can use to overwrite the source field in exports * Update src/packages/excalidraw/CHANGELOG.md Co-authored-by: David Luzar <luzar.david@gmail.com> * address review comments * Update src/packages/excalidraw/README_NEXT.md Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com> * Update src/packages/excalidraw/README_NEXT.md Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com> * EXCALIDRAW_EXPORT_SOURCE -> EXCALIDRAW_EXPORT_SOURCE_PATH Co-authored-by: David Luzar <luzar.david@gmail.com> Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
parent
6bcbf8b50a
commit
b6a6f2d465
4 changed files with 8 additions and 1 deletions
|
@ -108,7 +108,8 @@ export const EXPORT_DATA_TYPES = {
|
|||
excalidrawLibrary: "excalidrawlib",
|
||||
} as const;
|
||||
|
||||
export const EXPORT_SOURCE = window.location.origin;
|
||||
export const EXPORT_SOURCE =
|
||||
window.EXCALIDRAW_EXPORT_SOURCE_PATH || window.location.origin;
|
||||
|
||||
// time in milliseconds
|
||||
export const IMAGE_RENDER_TIMEOUT = 500;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue