|
@@ -375,7 +375,7 @@ $(document).ready(function() {
|
|
|
liffId: "1656494344-JovNdOv0"
|
|
|
})
|
|
|
.then(() => {
|
|
|
- alert('liff.init()'); // test
|
|
|
+ // alert('liff.init()'); // test
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
});
|
|
@@ -383,15 +383,15 @@ $(document).ready(function() {
|
|
|
// login
|
|
|
if (!liff.isLoggedIn()) {
|
|
|
liff.login();
|
|
|
- }
|
|
|
|
|
|
- // scanCodeV2 call
|
|
|
- liff.scanCodeV2().then(result => {
|
|
|
- // e.g. result = { value: "Hello LIFF app!" }
|
|
|
- alert('scanCodeV2()'); // test
|
|
|
- }).catch(err => {
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
+ // scanCodeV2 call
|
|
|
+ liff.scanCodeV2().then(result => {
|
|
|
+ // e.g. result = { value: "Hello LIFF app!" }
|
|
|
+ console.log('scanCodeV2()'); // test
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|