mirror of
https://github.com/github/awesome-copilot.git
synced 2026-09-17 12:21:22 +00:00
Removed background and boxShadow styles from orb on color event.
This commit is contained in:
@@ -261,8 +261,6 @@ function getHTML() {
|
|||||||
es.addEventListener('color', (e) => {
|
es.addEventListener('color', (e) => {
|
||||||
const { color } = JSON.parse(e.data);
|
const { color } = JSON.parse(e.data);
|
||||||
orb.style.setProperty('--orb-color', color);
|
orb.style.setProperty('--orb-color', color);
|
||||||
orb.style.background = color;
|
|
||||||
orb.style.boxShadow = '0 0 60px ' + color + ', 0 0 120px ' + color + '66';
|
|
||||||
});
|
});
|
||||||
es.addEventListener('log', (e) => {
|
es.addEventListener('log', (e) => {
|
||||||
const { entries } = JSON.parse(e.data);
|
const { entries } = JSON.parse(e.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user