canvas-inputs: get color variable from current node instead of global document
This commit is contained in:
parent
ed9a7b006e
commit
fa42bfd882
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue