Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from TransbankDevelopers/fix/intermediate-resp…
Browse files Browse the repository at this point in the history
…onse

Fix/intermediate response
  • Loading branch information
mastudillot authored Sep 24, 2021
2 parents bb40cb2 + 0ab9809 commit f7002c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"express": "4.15.2",
"socket.io": "^2.3.0",
"spacetime": "^6.16.3",
"transbank-pos-sdk": "^2.1.1",
"transbank-pos-sdk": "^2.1.2",
"vue": "^2.6.14",
"vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.14"
Expand Down
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ if (require('electron-squirrel-startup')) { // eslint-disable-line global-requir
app.quit();
}

// Only one instance of the app is allowed
const gotTheLock = app.requestSingleInstanceLock();

if (!gotTheLock) {
app.quit();
}

const createWindow = (): BrowserWindow => {
// Create the browser window.
Expand Down Expand Up @@ -93,9 +99,7 @@ app.on('ready', createWindow);
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
app.quit();
});

app.on('activate', () => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7375,10 +7375,10 @@ tough-cookie@~2.5.0:
psl "^1.1.28"
punycode "^2.1.1"

transbank-pos-sdk@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/transbank-pos-sdk/-/transbank-pos-sdk-2.1.1.tgz#7382f706e307a53545e8709a5b9797949fbee4c8"
integrity sha512-I0Sh9XZxy/oxHwlxR7E3bzSI3Olg3ae11kS1wgOLhjjhPmZtTD1tgovzBF56kiiSsdWueZKA4q82AdTk9puzXA==
transbank-pos-sdk@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/transbank-pos-sdk/-/transbank-pos-sdk-2.1.2.tgz#1b48a6da3def93bcd2a0f16c48a5444acb54ddb8"
integrity sha512-Abvo28GhaazDCDJ5I2gVeOrZDMfU7Fix5dO6BUa5yrvfeCvelK6pIKbns9CSWII3T2BLLYbpCVjWO8jaNi1T6g==
dependencies:
"@babel/runtime" "^7.11.2"
"@serialport/parser-inter-byte-timeout" "^9.0.1"
Expand Down

0 comments on commit f7002c2

Please sign in to comment.