Skip to content

Display number of read URLs on options page.#26

Open
colossatr0n wants to merge 3 commits intoedoreld:masterfrom
colossatr0n:display-number-read
Open

Display number of read URLs on options page.#26
colossatr0n wants to merge 3 commits intoedoreld:masterfrom
colossatr0n:display-number-read

Conversation

@colossatr0n
Copy link
Contributor

This resolves #25.

@colossatr0n colossatr0n force-pushed the display-number-read branch from d42fd77 to 292b748 Compare May 6, 2022 14:48
}

async function getVisitedCount() {
const obj = await chrome.storage.local.get("visited")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error on calling this line

Uncaught (in promise) TypeError: Error in invocation of storage.get(optional [string|array|object] keys, function callback): No matching signature.
    at getVisitedCount (options.js:24:44)
    at HTMLDocument.<anonymous> (options.js:46:64)

I believe you need to use chrome.storage.local.get("visited", function(obj) instead, as done elsewhere in the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display number of read URLs on the options page

2 participants