changeset 1682:dd868395ccd1

guard against corrupt drops into timeline. i was getting some ':effectClass <>' in logs Ignore-this: 70b460992912a6922140cc2b577423d1
author drewp@bigasterisk.com
date Sun, 11 Jun 2017 22:16:15 +0000
parents f9aab7275d4e
children 06e4d6de74f3
files light9/web/timeline/timeline.coffee
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/light9/web/timeline/timeline.coffee	Sun Jun 11 21:10:28 2017 +0000
+++ b/light9/web/timeline/timeline.coffee	Sun Jun 11 22:16:15 2017 +0000
@@ -303,6 +303,8 @@
   onDrop: (effect, pos) ->
     U = (x) => @graph.Uri(x)
 
+    return unless effect and effect.match(/^http/)
+
     # we could probably accept some initial overrides right on the
     # effect uri, maybe as query params