Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ost-ptk committed Nov 17, 2023
1 parent 79fd522 commit d3e2155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/background/create-open-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export enum WindowApp {

export type WindowSearchParams = Record<string, string>;

export function getUrlByWindowApp(
function getUrlByWindowApp(
windowApp: WindowApp,
searchParams?: WindowSearchParams
) {
Expand Down Expand Up @@ -104,7 +104,7 @@ export function createOpenWindow({

async function openNewWindow(): Promise<browser.Windows.Window> {
return browser.windows.getCurrent().then(async currentWindow => {
// If this flag is true, we initialize the initial state for the tests
// If this flag is true, we create a new window without any size and positions.
const isTestEnv = Boolean(process.env.TEST_ENV);

const windowWidth = currentWindow.width ?? 0;
Expand Down

0 comments on commit d3e2155

Please sign in to comment.