canvas-inputs: get color variable from current node instead of global document

This commit is contained in:
jean-emmanuel 2016-11-16 21:57:52 +01:00
parent ed9a7b006e
commit fa42bfd882

View file

@ -25,7 +25,7 @@
if (height==100 && width==100) return
self.color = getComputedStyle(document.documentElement).getPropertyValue("--color-text")
self.color = getComputedStyle(canvas[0]).getPropertyValue("--color-text")
self.height=height
self.width=width