same code base of h5p library works when logined but does not work when not logined? Is it by design?

Hello, I found the same code base of h5p library works when logined but does not work when not logined? Is it by design?
Content types: 
otacke's picture

Hi wxw!

What does your browser's developer console tell you?

If your code is using something that's only available when you're logged in such as the user property of the H5PIntegration object as used in https://github.com/h5p/h5p-boilerplate/blob/master/src/scripts/h5p-hello-world.js#L11 for instance - then it's expected behavior.

Best,

Oliver 

Thanks for your reply.

The error message from developer console: 'Unable to find constructor for: '.

I do not think I used some property of H5PIntegration. 

Thanks for your reply. The error message in the developer console said 'Unable to find constructor for: `. I checked the javascript file refered by the page, the constructor is there.

otacke's picture

Hi wxw!

Only stating the error message without the details doesn't help actually :-/ Please provide a link to the content or code so someone in the community could have a look.

Best,
Oliver

otacke's picture

Hi wxw!

Hmm, very strange use of github ... Anyway, I don't have any trouble running that content when I am not logged in, so it's potentially some problem with parameters of your particular content? Can't say without having that file.

Best,
Oliver