API Support

Ask a Question
Back to All

Getting a SyntaxError when loading API [Javascript]

I load kongregate_api script in the head of the html document like this

Then loading my main.js script that contains these lines


The error message;

SyntaxError: An invalid or illegal string was specified --- kongregate_api.js:36

console.log returns and object so i think it loads the script successfully.