Skip to content

Commit

Permalink
Fixes receiving from Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasFlamel1 committed May 9, 2023
1 parent 5dc222a commit 2a50a30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public_html/backend/resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,10 @@
"Checksum" => "uf1yQ1igJdTTd3ofOTVelJpqYWF/fuczoZ4/jkp46gyesaEpYag0+eJmgLw5Qe6lu6lM1IpPtTVgMVwA9HkZ0g=="
],
"./scripts/api.js" => [
"Version" => 68,
"Version" => 70,
"Cache" => TRUE,
"Minified" => FALSE,
"Checksum" => "ReScfJFi9U8vX+jon8FIFUEfc1zBAQIEZO0sv1K9IczUMZILr9MYOBWxI9kOqCa2gRjOwPAsnUwcRkAn7Gtc5g=="
"Checksum" => "ohhW07MKxaE1NRSrMsvAjtrDeWTmeXk3022RSLV0R5uBTJdPNLfLWrc2sN7sPs0K/7z5iYsHFDfg/TIwT+jFgg=="
],
"./scripts/LedgerJS_Browser-0.0.2.js" => [
"Version" => 1,
Expand Down
4 changes: 2 additions & 2 deletions public_html/scripts/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ class Api {
case Api.CHECK_VERSION_METHOD:

// Check if parameters are provided
if(Array.isArray(data["params"]) === true) {
if(data["params"] === null || Array.isArray(data["params"]) === true) {

// Check if the correct number of parameters are provided
if(data["params"]["length"] === Api.CHECK_VERSION_PARAMETERS_LENGTH) {
if(data["params"] === null || data["params"]["length"] === Api.CHECK_VERSION_PARAMETERS_LENGTH) {

// Resolve
resolve([
Expand Down

0 comments on commit 2a50a30

Please sign in to comment.