Using instanceof to detect a Record only works if the library instance loaded on the page is the same as the one passed into installDevtools. That's not the case in the Chrome extension.
This PR uses an alternative to instanceof and also adds a set of manual test cases to check code changes didn't break the formatters.
Using
instanceof
to detect aRecord
only works if the library instance loaded on the page is the same as the one passed intoinstallDevtools
. That's not the case in the Chrome extension.This PR uses an alternative to
instanceof
and also adds a set of manual test cases to check code changes didn't break the formatters.