We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 688bed6 commit d3fc80eCopy full SHA for d3fc80e
lib/environment/background/permissions.js
@@ -26,7 +26,7 @@ async function makePromptWindow({ permissions, origins }) {
26
const height = 255;
27
28
// Get the current window's dimensions and calculate center position
29
- const { width: screenWidth, height: screenHeight } = await chrome.windows.getCurrent();
+ const { width: screenWidth, height: screenHeight } = await chrome.windows.getCurrent() || { width: 1920, height: 1080 };
30
const left = Math.floor(screenWidth / 2 - width / 2);
31
const top = Math.floor(screenHeight / 2 - height / 2);
32
0 commit comments