Skip to content

Feature request: Make getQueryVariable iframe aware or at least allow to pass launch parameters to launch explicitly #165

Description

@ralokt

The current implementation of ADL.launch uses getQueryVariable [1], which assumes that it will always be able to get the launch parameters from window.location. This is not true if window is an iframe, for example for an embedded H5P on a Moodle page.

It would be great if this use case could be supported somehow, perhaps by trying to get launch parameters from the parent iframe (if it exists) as a fallback, or by allowing to override the launch parameters by passing them explicitly.

[1]

function getQueryVariable(variable)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions