Skip to content

Commit

Permalink
log window target
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 27, 2021
1 parent b1d230c commit c9d3c57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const logTargetProp = (target: any, memberPath: string[]) => {
let n = '';
if (target) {
const instanceId = target[InstanceIdKey];
if (instanceId === PlatformInstanceId.document) {
if (instanceId === PlatformInstanceId.window) {
n = 'window.';
} else if (instanceId === PlatformInstanceId.document) {
n = 'document.';
} else if (instanceId === PlatformInstanceId.documentElement) {
n = 'document.documentElement.';
Expand Down

1 comment on commit c9d3c57

@vercel
Copy link

@vercel vercel bot commented on c9d3c57 Sep 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.