Forum Discussion

TracyCowan's avatar
TracyCowan
Community Member
3 months ago

Using Dev Tools with Storyline

Howdy, I am trying to determine what the storyline variables using Dev Tools. I have tried var player = GetPlayer(); and I get an error "GetPlayer is not defined". I try window.GetPlayer(); and I get...
  • MatthewKliewer's avatar
    3 months ago

    Hi Tracy - it's possible that your DevTools console "JavaScript context" is in the wrong window.

    At the top of most Consoles, there's a dropdown where you can select the context of the window you want to interact with, and especially when working with embeds, sometimes you have to manually switch to the window containing your project (look for story.html).

    Typically, if you right-click > Inspect pages the console will take you to the proper context. But since most of the Storyline stage disables right-click, you often have to manually select it; either through the dropdown, or the element inspector where you can then select your Storyline stage which switches to that context.

    This may not be the issue, but it's a common one for me.