@integration-app/sdk
Advanced tools
Comparing version 0.1.55 to 0.1.56
@@ -95,3 +95,7 @@ "use strict"; | ||
else { | ||
const popup = window.open(url.toString()); | ||
const height = Math.round(screen.height * 0.6); | ||
const width = Math.round(screen.width * 0.7); | ||
const top = Math.round(screen.height * 0.2); | ||
const left = Math.round(screen.height * 0.15); | ||
const popup = window.open(url.toString(), null, `popup,width=${width},height=${height},left=${left},top=${top}`); | ||
cancelCheckInterval = setInterval(() => { | ||
@@ -98,0 +102,0 @@ if (popup === null || popup === void 0 ? void 0 : popup.closed) { |
{ | ||
"name": "@integration-app/sdk", | ||
"version": "0.1.55", | ||
"version": "0.1.56", | ||
"description": "JavaScript SDK for Integration.app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -141,3 +141,11 @@ import Pusher, { Channel } from 'pusher-js' | ||
} else { | ||
const popup = window.open(url.toString()) | ||
const height = Math.round(screen.height * 0.6) | ||
const width = Math.round(screen.width * 0.7) | ||
const top = Math.round(screen.height * 0.2) | ||
const left = Math.round(screen.height * 0.15) | ||
const popup = window.open( | ||
url.toString(), | ||
null, | ||
`popup,width=${width},height=${height},left=${left},top=${top}`, | ||
) | ||
cancelCheckInterval = setInterval(() => { | ||
@@ -144,0 +152,0 @@ if (popup?.closed) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
992813
11879