Skip to content

Remove default value from DOM #728

@Crash--

Description

@Crash--

We now have a new method to init and inject the cozy-stack variables in the app's dom. We use cozy-data={{}} instead of cozy-data-X={}. By doing so, we can break the bar if the app doesn't pass all the value during the initialization phase of the bar.

I think we should remove the fact that the Bar can init itself from the DOM. The APP should be responsible to do that.

We should remove https://github.com/cozy/cozy-bar/blob/master/src/dom.js#L4 for instance.

appNamePrefix = getAppNamePrefix(),
we should not set default value.

(see cozy/cozy-drive#2395)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions