Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Move util database modification functions #499

Conversation

toasted-nutbread
Copy link
Collaborator

apiImportDictionaryArchive and apiDeleteDictionary replace utilDatabaseImport and utilDatabaseDeleteDictionary.

Related: #455

Copy link
Collaborator

@siikamiika siikamiika left a comment

Choose a reason for hiding this comment

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

The descriptive error messages for stuff like importing a duplicate dictionary don't work:

Yomichan v20.4.18.0 has encountered a problem.
Originating URL: chrome-extension://jpjldhmgaijbpomlojkhkghbbebbiblb/bg/settings.html
Error

Issues can be reported at https://github.com/FooSoft/yomichan/issues

@@ -809,6 +811,11 @@ class Backend {
return portName;
}

async _onApiImportDictionaryArchive({archiveContent, details}, sender, onProgress) {
this._validatePrivilegedMessageSender(sender);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be moved to the handler info object like in #497 (separately)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably, now that there's somewhat of a convention for it.

@toasted-nutbread
Copy link
Collaborator Author

The descriptive error messages for stuff like importing a duplicate dictionary don't work:

Error serialization problems caught me again. c062ef1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants