fix: console error and codacy

This commit is contained in:
David Ralph
2021-08-27 18:27:11 +01:00
parent feb7e1d93c
commit abe70617d8
19 changed files with 25 additions and 23 deletions

View File

@@ -25,7 +25,7 @@ export function offlineBackground() {
localStorage.setItem('currentBackground', JSON.stringify(object));
return object;
};
}
export function gradientStyleBuilder({ type, angle, gradient }) {
// Note: Append the gradient for additional browser support.
@@ -35,5 +35,5 @@ export function gradientStyleBuilder({ type, angle, gradient }) {
return {
type: 'colour',
style: `background:${gradient[0]?.colour};${grad}`
}
};
};