diff --git a/content_scripts/milje.js b/content_scripts/milje.js index 118b85c..821e5a2 100644 --- a/content_scripts/milje.js +++ b/content_scripts/milje.js @@ -23,7 +23,7 @@ function start () { function getParamsFromStorage () { return browser.storage.local.get(['params']) - .then(({params}) => params) + .then(({params}) => params ?? {}) } function assureParams(params) { @@ -169,7 +169,7 @@ function getCanvas(size) { 'top': '0%', 'left': '50%', 'transform': 'translateY(-50%) translateX(-50%) rotate(45deg)', - 'filter': 'drop-shadow(0px 0px 10px rgba(60,60,60,0.5))', + 'filter': 'drop-shadow(5px 5px 10px rgba(60,60,60)) blur(1px)', 'pointerEvents': 'none', 'zIndex': '9999', }).forEach(([key, value]) => { canvas.style[key] = value }) diff --git a/scripts/params.js b/scripts/params.js index 240f8ce..4dd93b3 100644 --- a/scripts/params.js +++ b/scripts/params.js @@ -13,7 +13,7 @@ export const fields = [ export function getParamsFromStorage () { return browser.storage.local.get(['params']) - .then(({params}) => params) + .then(({params}) => params ?? {}) } export function setParamsToStorage (params) {