In case you run into this problem, there is a workaround: https://github.com/itchio/itch/issues/3271
sylefeb
3
Posts
1
Topics
1
Followers
A member registered Nov 02, 2019 · View creator page →
Recent community posts
itch.io Community » itch.io » itch app Development · Created a new topic HTML5 API integration (Itch.env.ITCHIO_API_KEY) no longer working?
Hello,
In the past I've been successfully using the API when running from the app (HTML5 game), testing for the Itch object existence from javascript as documented:
if (typeof Itch === 'undefined') {
console.log('no Itch context');
} else { ... }This no longer works (I always get 'no itch context', both when running in the app and the itch.io website). I also tried with this sample project (replacing the files in my own project) https://github.com/fasterthanlime/sample-html-app and it also does not find the Itch object.
Is there now an additional step to take besides the manifest?
Thank you!
Best regards -