Skip to content

Commit

Permalink
feat: add location info on PagePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed Apr 27, 2023
1 parent d28b8aa commit f2fbd58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class PagePlugin implements PageSpyPlugin {
const originHtml = document.documentElement.outerHTML;
const msg = makeMessage(DEBUG_MESSAGE_TYPE.PAGE, {
html: originHtml,
location: window.location,
});
return msg;
}
Expand Down
1 change: 1 addition & 0 deletions types/lib/page.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export interface DataItem {
html: string;
location: Record<keyof Location, string>;
}

0 comments on commit f2fbd58

Please sign in to comment.