Skip to content
Snippets Groups Projects
Commit 22c3f8d8 authored by Denis Peters's avatar Denis Peters
Browse files

fixed get context from wrong canvas for background

parent 6af5c525
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ function Clock(panel, config) { ...@@ -2,7 +2,7 @@ function Clock(panel, config) {
this.canvas = panel[0].querySelector("canvas"); this.canvas = panel[0].querySelector("canvas");
this.pane = this.canvas.getContext("2d"); this.pane = this.canvas.getContext("2d");
this.bgCanvas = document.createElement("canvas"); 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.monthNames = ["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];
this.dayNames = ["so","mo","di","mi","do","fr","sa"]; this.dayNames = ["so","mo","di","mi","do","fr","sa"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment