API Support
Getting a SyntaxError when loading API [Javascript]
over 5 years ago by Mertcan Çezik
I load kongregate_api script in the head of the html document like this
Then loading my main.js script that contains these lines
console.log(window.kongregateAPI);
window.kongregateAPI.loadAPI(function(){});
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.