skygear-SDK-JS icon indicating copy to clipboard operation
skygear-SDK-JS copied to clipboard

Use a proper URL manipulation library instead of string concatenation

Open akiroz opened this issue 7 years ago • 0 comments

I couldn't find this issue mentioned anywhere so I'm opening one... do correct me if there's already an issue for this.

String concatenation is used in most places to handle URLs. As a result, this code will cause a cryptic error message when using skygear:

skygear.config(
  'https://myapp.skygeario.com', // <- missing trailing slash
  'a22c50e0acb3447c81f9c5756e7331e7'
);

akiroz avatar May 15 '17 08:05 akiroz