mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix
This commit is contained in:
parent
9c63b0124c
commit
e465a43f77
1 changed files with 1 additions and 16 deletions
|
@ -346,22 +346,7 @@ const ExcalidrawWrapper = () => {
|
||||||
|
|
||||||
initializeScene({ collabAPI, excalidrawAPI }).then(async (data) => {
|
initializeScene({ collabAPI, excalidrawAPI }).then(async (data) => {
|
||||||
loadImages(data, /* isInitialLoad */ true);
|
loadImages(data, /* isInitialLoad */ true);
|
||||||
initialStatePromiseRef.current.promise.resolve({
|
initialStatePromiseRef.current.promise.resolve(data.scene);
|
||||||
type: "excalidraw",
|
|
||||||
version: 2,
|
|
||||||
source: "http://localhost:3000",
|
|
||||||
elements: [
|
|
||||||
{
|
|
||||||
type: "rectangle",
|
|
||||||
children: [{ text: "HELLO DAMMMMY" }],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
appState: {
|
|
||||||
gridSize: null,
|
|
||||||
viewBackgroundColor: "#ffffff",
|
|
||||||
},
|
|
||||||
files: {},
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const onHashChange = async (event: HashChangeEvent) => {
|
const onHashChange = async (event: HashChangeEvent) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue