aboutsummaryrefslogtreecommitdiff
path: root/src/Main.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.tsx')
-rw-r--r--src/Main.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Main.tsx b/src/Main.tsx
index e5302bdee..7560abca7 100644
--- a/src/Main.tsx
+++ b/src/Main.tsx
@@ -27,22 +27,22 @@ let mainContainer = Documents.CollectionDocument(mainNodeCollection, {
x: 0, y: 0, width: window.screen.width, height: window.screen.height
})
-window.addEventListener("drop", function(e) {
+window.addEventListener("drop", function (e) {
e.preventDefault();
}, false)
-window.addEventListener("dragover", function(e) {
+window.addEventListener("dragover", function (e) {
e.preventDefault();
}, false)
-document.addEventListener("pointerdown", action(function(e: PointerEvent) {
+document.addEventListener("pointerdown", action(function (e: PointerEvent) {
if (!ContextMenu.Instance.intersects(e.pageX, e.pageY)) {
ContextMenu.Instance.clearItems()
}
}), true)
ReactDOM.render((
- <div style={{display: "grid"}}>
+ <div style={{ display: "grid" }}>
<h1>Dash Web</h1>
- <DocumentView Document={mainContainer} ContainingCollectionView={undefined} ContainingDocumentView={undefined}/>
+ <DocumentView Document={mainContainer} ContainingCollectionView={undefined} ContainingDocumentView={undefined} />
<DocumentDecorations />
<ContextMenu />
</div>), document.getElementById('root'));