-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: guard against inspector code crashing screens
On real Bus E-ink hardware we saw a mysterious "DOM exception 12" crash that seemed to be caused by the inspector changes. Though the message sending and listening should have already been a no-op when the screen is not "framed", this adds a check for whether the screen is "framed" by the inspector specifically, and otherwise doesn't even attempt to send/listen. This should sidestep any issues with e.g. a screen vendor rendering our pages inside a frame.
- Loading branch information
1 parent
6cab1ef
commit 94b11e9
Showing
3 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters