diff --git a/pkg/extension/src/scripts/api.js b/pkg/extension/src/scripts/api.js index 2ef615d36..2bab74be8 100644 --- a/pkg/extension/src/scripts/api.js +++ b/pkg/extension/src/scripts/api.js @@ -1,6 +1,7 @@ function gqlRequest(apiUrl, query) { return getStorageItem('apiKey') .then((apiKey) => { + const auth = apiKey ? { Authorization: apiKey } : {} return fetch(apiUrl, { method: 'POST', redirect: 'follow', @@ -9,7 +10,7 @@ function gqlRequest(apiUrl, query) { headers: { Accept: 'application/json', 'Content-Type': 'application/json', - Authorization: apiKey ? apiKey : undefined, + ...auth, }, body: query, }) diff --git a/pkg/extension/src/scripts/content/toast.js b/pkg/extension/src/scripts/content/toast.js index aeaee2d48..cb807f674 100644 --- a/pkg/extension/src/scripts/content/toast.js +++ b/pkg/extension/src/scripts/content/toast.js @@ -316,13 +316,14 @@ '.omnivore-top-button-label' ) labels.forEach((label) => { - console.log(' - hiding label', label) label.style.display = 'none' }) const container = root.shadowRoot.querySelector( '#omnivore-toast-container' ) container.style.width = '280px' + container.style.top = 'unset' + container.style.bottom = '20px' } } diff --git a/pkg/extension/src/views/toast.html b/pkg/extension/src/views/toast.html index ac23a0d76..34a5c43d5 100644 --- a/pkg/extension/src/views/toast.html +++ b/pkg/extension/src/views/toast.html @@ -2,7 +2,7 @@ #omnivore-toast-container { position: fixed; top: 20px; - right: 30px; + right: 20px; display: flex; flex-direction: row;