Skip to content

Commit

Permalink
fix: canvas color
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchen915 committed May 4, 2018
1 parent 23a3fd1 commit 06fbed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ window.requestAnimFrame = (callback => {
};
})();

let canvasColor = '#429E46';
const root = getComputedStyle(document.documentElement);
const canvasColor = root.getPropertyValue('--mdc-theme-primary').trim();
let canvas = document.querySelector('.connecting-dots');
const ctx = canvas.getContext('2d');

Expand Down

0 comments on commit 06fbed6

Please sign in to comment.