Handbook cookie popup scrolls parent page when iframed
Whenever a handbook page is embedded in an iframe, for example on the gitlab training certification page: ie https://scorm.thoughtindustries.com/RusticiEngine/defaultui/player/modern.html?[...]
the page is forcefully scrolled to the iframe because the cookie popup is calling a scroll method internally. Whenever there are more than 1 iframes with handbook pages the user gets thrown around for a second, then having to scroll back up to top.
Ideally we should be able to determine wether or not the handbook is within an iframe and avoid this behavior, a simple approach would be to check for:
window.location !== window.parent.location