Browse Source

Re-load currencies when resetting

David Peter 2 years ago
parent
commit
03648dc9c4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      numbat-wasm/www/index.js

+ 1 - 0
numbat-wasm/www/index.js

@@ -47,6 +47,7 @@ function interpret(input) {
     var output = "";
   } else if (input_trimmed == "reset") {
     numbat = Numbat.new();
+    numbat.interpret("use units::currencies");
     this.clear();
   } else if (input_trimmed == "list" || input_trimmed == "ll" || input_trimmed == "ls") {
     output = numbat.print_environment();