Skip to content

Commit

Permalink
Fix shift error.
Browse files Browse the repository at this point in the history
  • Loading branch information
amovar18 committed Jan 20, 2025
1 parent 25fac8c commit 085c55e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/extension/src/contentScript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
type CookieDatabase,
} from '@google-psat/common';
import { computePosition, autoPlacement } from '@floating-ui/core';
import { autoUpdate, platform, arrow } from '@floating-ui/dom';
import { autoUpdate, platform, arrow, shift, flip } from '@floating-ui/dom';

/**
* Internal dependencies.
Expand Down Expand Up @@ -393,10 +393,10 @@ class WebpageContentScript {
placement: 'top',
middleware: [
shift({
boundary: document.querySelector('body'),
boundary: document.body,
}),
flip({
boundary: document.querySelector('body'),
boundary: document.body,
}),
arrow({
element: arrowElement,
Expand Down Expand Up @@ -569,6 +569,7 @@ class WebpageContentScript {
removeAllPopovers();
toggleFrameHighlighting(false);
this.isInspecting = false;
this.mode = 'Cookies';
};

/**
Expand Down

0 comments on commit 085c55e

Please sign in to comment.