|
@@ -34,6 +34,11 @@ $(document).ready(function() {
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ // login
|
|
|
|
+ if (!liff.isLoggedIn()) {
|
|
|
|
+ liff.login();
|
|
|
|
+ }
|
|
|
|
+
|
|
// scanCodeV2 call
|
|
// scanCodeV2 call
|
|
liff.scanCodeV2().then(result => {
|
|
liff.scanCodeV2().then(result => {
|
|
// e.g. result = { value: "Hello LIFF app!" }
|
|
// e.g. result = { value: "Hello LIFF app!" }
|