mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 09:21:00 +02:00
fix
This commit is contained in:
@@ -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) => {
|
||||||
|
Reference in New Issue
Block a user