diff options
| author | bob <bcz@cs.brown.edu> | 2019-05-03 13:43:17 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-05-03 13:43:17 -0400 |
| commit | 340b49b4373b2041a167337ec02284e73bfaf3f7 (patch) | |
| tree | 97b5b0a49f3c46cade5609e8fde07a6e83fe7720 /src/client/views/collections/CollectionSubView.tsx | |
| parent | b12143cc9822e2d590212363e02a1f8771c81e3b (diff) | |
fixed document drop. improved icon dragging to work across collections.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index a59bc196e..828ac880a 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -182,7 +182,7 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) { let prom = new Promise<string>(resolve => e.dataTransfer.items[i].getAsString(resolve)) .then(action((s: string) => rp.head(DocServer.prepend(RouteStore.corsProxy + "/" + (str = s))))) .then(result => { - let type = result.headers["content-type"]; + let type = result["content-type"]; if (type) { this.getDocumentFromType(type, str, { ...options, width: 300, nativeWidth: 300 }) .then(doc => doc && this.props.addDocument(doc, false)); |
