diff --git a/demo.html b/demo.html
index 4af5210..3d535e1 100644
--- a/demo.html
+++ b/demo.html
@@ -61,7 +61,6 @@
IScan
-
@@ -120,7 +119,7 @@
})
} else {
window.addEventListener("IScanReady", function () {
- initSDK(callback);
+ initSDK(options, callback);
})
}
}
@@ -134,6 +133,7 @@
webScanBeepEnabled: true,
initWechatJssdk: { apiUrl: url }
}, function () {
+ result("初始化成功");
IScan.setStatusListener(function (res) {
output("status", IScan.getStatus());
});
@@ -141,7 +141,6 @@
result(res);
}, "scan", null, 100);
output(window.navigator.userAgent);
- result("初始化成功");
});
}
@@ -157,6 +156,8 @@
IScan.startScan();
}
+ ready();
+
diff --git a/dist/index.html b/dist/index.html
index 5d223fb..1f0ff8d 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -42,7 +42,7 @@
white-space: pre-wrap;
word-wrap: break-word;
display: none;
- }IScan