Skip to content

Commit df878a2

Browse files
committed
update fix for new wasm release from mbbank with new version
1 parent 9d69e24 commit df878a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mbbank/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
from .wasm_helper import wasm_encrypt
44
from .capcha_ocr import CapchaProcessing, TesseractOCR
55

6-
__version__ = '0.1.9'
6+
__version__ = '0.2.0'

mbbank/wasm_helper/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
class globalThis:
1515
def __init__(self):
16+
self.exports = undefined
17+
self.window = dict_warper({"document": dict_warper({})})
1618
self.fs = fs_object()
1719
self.process = process_object()
1820
self.location = dict_warper({"origin": "https://online.mbbank.com.vn"})
@@ -75,7 +77,7 @@ def storeValue(addr, v=undefined):
7577
self.mem.setFloat64(addr, v, True)
7678
return
7779

78-
if v is None:
80+
if v is undefined:
7981
self.mem.setFloat64(addr, 0, True)
8082
return
8183

0 commit comments

Comments
 (0)