This commit is contained in:
Aakansha Doshi 2023-05-03 15:44:18 +05:30
parent 9c63b0124c
commit e465a43f77

View file

@ -346,22 +346,7 @@ const ExcalidrawWrapper = () => {
initializeScene({ collabAPI, excalidrawAPI }).then(async (data) => {
loadImages(data, /* isInitialLoad */ true);
initialStatePromiseRef.current.promise.resolve({
type: "excalidraw",
version: 2,
source: "http://localhost:3000",
elements: [
{
type: "rectangle",
children: [{ text: "HELLO DAMMMMY" }],
},
],
appState: {
gridSize: null,
viewBackgroundColor: "#ffffff",
},
files: {},
});
initialStatePromiseRef.current.promise.resolve(data.scene);
});
const onHashChange = async (event: HashChangeEvent) => {