diff --git a/src/browser/js/jquery/jquery.fake-input.js b/src/browser/js/jquery/jquery.fake-input.js index fcd288a0..9929ab72 100644 --- a/src/browser/js/jquery/jquery.fake-input.js +++ b/src/browser/js/jquery/jquery.fake-input.js @@ -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