diff --git a/package-lock.json b/package-lock.json index 1f72e04..3f054e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "szuru-chrome", - "version": "0.1.2", + "version": "0.1.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -4036,9 +4036,9 @@ "dev": true }, "neo-scraper": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/neo-scraper/-/neo-scraper-0.1.0.tgz", - "integrity": "sha512-XfSFRKwB9vVldWGPecOxWeMfBfNkhOklPbb4qYknnsyW7gkbudY5L3VkqM8DFnsvXyXEGW2rFTsc1JTfigypKg==" + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/neo-scraper/-/neo-scraper-0.2.0.tgz", + "integrity": "sha512-trO7FNdlXnxifI/XY/DBeG5JvHkf+wtEvlPO3gZeVhKFIRcmiA3mRIc4q6T/ffSGCz4a5q6MYLo7SUeJFhK/FQ==" }, "nice-try": { "version": "1.0.5", diff --git a/package.json b/package.json index f5088c4..8ad76c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "szuru-chrome", - "version": "0.1.2", + "version": "0.1.3", "description": "Import media from various sites into szurubooru", "author": "neobooru", "license": "MIT", @@ -13,7 +13,7 @@ }, "dependencies": { "axios": "^0.19.0", - "neo-scraper": "^0.1.0", + "neo-scraper": "^0.2.0", "ts-optchain": "^0.1.8", "vue": "^2.6.10", "webextension-polyfill": "^0.3.1" diff --git a/src/popup/App.vue b/src/popup/App.vue index e15c431..665f6df 100644 --- a/src/popup/App.vue +++ b/src/popup/App.vue @@ -123,7 +123,7 @@ export default Vue.extend({ }))[0]; // Send 'grab_post' to the content script on the active tab - const x = (await browser.tabs.sendMessage(activeTab.id!, "grab_post")); + const x = await browser.tabs.sendMessage(activeTab.id!, "grab_post"); // We need to create a new ScrapeResults object and fill it with our data, because the get_posts() // method gets 'lost' when sent from the contentscript to the popup (it gets JSON.stringified and any prototype defines are lost there) const res = Object.assign(new ScrapeResults(), x);