Skip to content

gracefully deal with an empty config file #5

@rekado

Description

@rekado

When an error occurs during the very first initialisation of DOMCrypt, the config file .mozCipher.json may be created as an empty file. On subsequent initialisations of the extension, DOMCrypt will then fail to parse the empty contents, results in a failure to initialise.

Instead of attempting to parse empty contents, DOMCrypt should treat an empty config file as if it didn't exist and overwrite it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions