Javascript API Generator Issues

Whenever I download the javascript API for my custom business logic service I have to manually edit one of the files to make it work.

I have to add the following code to the beginning of the js file:

$.getScript(((window.location.protocol == ‘file:’) ? “http:” : window.location.protocol) + “//api.backendless.com/sdk/js/latest/backendless.min.js”, function() {
$.holdReady(false);

Then I have to replace BackendlessUser with Backendless.User

Why is this necessary? Am I doing something incorrectly?

Hello, Phil!

With this code you download the latest backendless.js library which would be used further. Can you please explain what exactly is the problem you’re facing with?
regards,
Alex

I don’t use a local copy. I am using “//api.backendless.com/sdk/js/latest/backendless.min.js

Yes, I understand. But the generated API uses backendless.js methods inside. If you don’t have a local one - the code above should be used to download it.

I’m sorry, I feel that I cannot completely understand your problem… Can you please describe what you want to do, what you exactly do, and what goes wrong?