remove comments

This commit is contained in:
Julien Goux committed 2025-02-27 11:31:13 +01:00
1 parent 5cb106b320
commit 40e267aecd
1 file changed
+1 -5
+1 -5
View File
@@ -45,20 +45,16 @@ export function openInstallGitLabIntegrationWindow(type: 'install' | 'authorize'
: screen.height
let windowUrl
// if (type === 'install') {
// windowUrl = GITHUB_INTEGRATION_INSTALLATION_URL
// } else if (type === 'authorize') {
const state = makeRandomString(32)
localStorage.setItem(LOCAL_STORAGE_KEYS.GITLAB_AUTHORIZATION_STATE, state)
windowUrl = `${GITLAB_INTEGRATION_AUTHORIZATION_URL}&state=${state}`
// }
const systemZoom = width / window.screen.availWidth
const left = (width - w) / 2 / systemZoom + dualScreenLeft
const top = (height - h) / 2 / systemZoom + dualScreenTop
const newWindow = window.open(
windowUrl,
'GitHub',
'GitLab',
`scrollbars=yes,resizable=no,status=no,location=no,toolbar=no,menubar=no,
width=${w / systemZoom},
height=${h / systemZoom},