Skip to content

LocalStorage.debug overwritten by process.env.DEBUG #337

@nikoskleidis

Description

@nikoskleidis

I have properly set debug in localstorage.
In load() function of browser.js the value of the debug item I have in my localstorage is overwritten by process.env.DEBUG which is undefined in my case.
I believe that this statement is not working as expected:
if ('env' in (typeof process === 'undefined' ? {} : process)) { r = process.env.DEBUG; }
or it should be rewritten as:
if ('env' in (typeof process === 'undefined' ? {} : process)) { r = process.env.DEBUG || r; }

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions