You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: