Closed jonespm closed 2 months ago
I wonder here if lack of access to localStorage
(in localStorage.instui_nav_dev
, due to iframe policy) is the issue.
Looking at this again on Monday. Ultimately I think we need to reduce our use of the "bare" layout, which loads too much JS (including in iframe contexts?).
I'm not longer seeing this issue so must have been incorporated, going to close.
We've noticed in the last few weeks that when using the Rich Text Editor button to browse for and search for some external tool media this javascript error occurs in the console. It also occurs when trying to display and play some content in an iframe that's linked using this method. I don't know what specifics but it seems to be more with video content like Kaltura.
This seems like it might be causing some issues for some users. It looks like in the iframe the
window.ENV
isn't always available. This should probably be handled in an exception or else theENV
should be available.I believe this recent change is where this error is coming from.
Thanks!
https://github.com/instructure/canvas-lms/blame/634fb0023076467fcab6482036b54b6f8c2a18f7/ui/boot/initializers/router.tsx#L34