diff --git a/ext/src/js/modules/main.js b/ext/src/js/modules/main.js index 7c96292..42dcd0c 100644 --- a/ext/src/js/modules/main.js +++ b/ext/src/js/modules/main.js @@ -293,8 +293,7 @@ async function saveBookmark() { renderSuccess('Snapshot successfully saved!', msg); }, async function(err) { destroyProgressBar(); - const msg = await err.json(); - renderError(`Failed to save bookmark! Error: ${err.statusText}: ${msg.error}`); + renderError(`Failed to save bookmark! ${err}`); }); } diff --git a/ext/webpack.config.js b/ext/webpack.config.js index 0897e3a..aa18944 100644 --- a/ext/webpack.config.js +++ b/ext/webpack.config.js @@ -115,7 +115,7 @@ module.exports = { version: process.env.npm_package_version, ...JSON.parse(content.toString()) }; - content['background']['scripts'] = 'background.js'; + content['background']['scripts'] = ['background.js']; content['browser_specific_settings'] = { "gecko": { "id": "{f0bca7ce-0cda-41dc-9ea8-126a50fed280}",