From 22c3f8d85cefe5976dbd65fd42030f5f4a0cdb80 Mon Sep 17 00:00:00 2001 From: Denis Peters <denis.peters@udo.edu> Date: Wed, 8 Nov 2017 09:52:32 +0000 Subject: [PATCH] fixed get context from wrong canvas for background --- js/Clock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Clock.js b/js/Clock.js index a0ad43c..39ebb12 100644 --- a/js/Clock.js +++ b/js/Clock.js @@ -2,7 +2,7 @@ function Clock(panel, config) { this.canvas = panel[0].querySelector("canvas"); this.pane = this.canvas.getContext("2d"); this.bgCanvas = document.createElement("canvas"); - this.bgPane = this.canvas.getContext("2d"); + this.bgPane = this.bgCanvas.getContext("2d"); this.monthNames = ["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"]; this.dayNames = ["so","mo","di","mi","do","fr","sa"]; -- GitLab