diff --git a/public/javascripts/spacedeck_whiteboard.js b/public/javascripts/spacedeck_whiteboard.js index 8b8c1daca791bf33cb8c6087920f1ae35761b8a6..54be6aad8d54951647c5d209b20819244b2ab83a 100644 --- a/public/javascripts/spacedeck_whiteboard.js +++ b/public/javascripts/spacedeck_whiteboard.js @@ -592,7 +592,8 @@ function setup_whiteboard_directives() { z: z, w: 64, h: 64, - stroke_color: "#000000", + // Set the color to the last selected color, fallback to black if no color was selected + stroke_color: "#" + $scope.color_picker_rgb || "#000000", stroke: 2, shape: "scribble" }; @@ -629,7 +630,8 @@ function setup_whiteboard_directives() { z: z, w: 64, h: 64, - stroke_color: "#000000", + // Set the color to the last selected color, fallback to black if no color was selected + stroke_color: "#" + $scope.color_picker_rgb || "#000000", stroke: 2, shape: "arrow" };