Skip to content

Problems with hyphens in client name #249

@JohnSmall

Description

@JohnSmall

We have two clients, the main one, and a staging version. For development we want to use the staging client, but the staging client has a hyphen in the name .e.g OurCompanyName-staging.

When the filestack initialisation js runs on the page load, it tries to create a variable

//<![CDATA[ var OurCompanyName-staging = filestack.init('ourApiKey', {"cname":null}); //]]>

Which fails because Javascript doesn't allow hyphens in variable names.

Do we have to change the name of our staging client?

Can the code please handle this case better?

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