From 742d05489e76ad5fbef9bac1ca971785f52d1410 Mon Sep 17 00:00:00 2001 From: Mstiekema Date: Tue, 26 Oct 2021 13:22:07 +0200 Subject: [PATCH] fix cardOn UUID register --- modules/handle_state.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/handle_state.js b/modules/handle_state.js index f60d5d3..945da27 100644 --- a/modules/handle_state.js +++ b/modules/handle_state.js @@ -7,7 +7,7 @@ module.exports.CardOn = async (win, uuid) => { win.loadFile(`src/views/base/base.html`, { query: { "uuid": JSON.stringify(uuid) } }); } else if (statusCode == 404) { // Show register page if card not found - win.loadFile(`src/views/register/register.html`); + win.loadFile(`src/views/register/register.html`, { query: { "uuid": JSON.stringify(uuid) } }); } else if (statusCode == 401) { // Blocked card win.loadFile(`src/views/idle/idle.html`, { query: { error: "This card has been blocked. Please add a new card." } }); diff --git a/package.json b/package.json index eea4f36..210b21a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "magnificent-sloth", - "version": "0.0.1", + "version": "0.0.15", "description": "Point of Sale for Dead Mongoose", "main": "main.js", "maintainers": [