From 408bf02b8977a946f51fe0d62dd950fbd85e6912 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Thu, 28 Mar 2019 14:54:42 -0300 Subject: [PATCH] Fix memory check Signed-off-by: Chris Cromer --- config.xml | 2 +- package.json | 6 +++--- www/scripts/jvon-interpret.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.xml b/config.xml index 1351860..63c95ae 100644 --- a/config.xml +++ b/config.xml @@ -36,6 +36,6 @@ - + diff --git a/package.json b/package.json index 8b71926..51f46dd 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "cordova-plugin-splashscreen": {} }, "platforms": [ - "android", - "browser" + "browser", + "android" ] } -} +} \ No newline at end of file diff --git a/www/scripts/jvon-interpret.js b/www/scripts/jvon-interpret.js index f3f034b..75c6ebd 100644 --- a/www/scripts/jvon-interpret.js +++ b/www/scripts/jvon-interpret.js @@ -791,7 +791,7 @@ document.addEventListener('DOMContentLoaded', function () { } } else if (syntax.type == "memory") { - if ($scope.check_memory_address(value) == true) { + if ($scope.check_memory_address(value) == true && $scope.check_memory_value(value) == true) { value = parseFloat($scope.memory[value - 80]); var new_value; if (value < 0) {